summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-21 21:48:23 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-21 21:48:23 +0200
commitd8ac0c8298cf6157fcf5773eab088f19a2c8fbb1 (patch)
treec313de92454827fc804a22d81f313212ac4f517f /animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js
parente83fbeeefed0a8416b9417f713bc335d79cfbfc7 (diff)
background color stuff, pull quotes in the text but not the transcript, inline vitrine stuff
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js')
-rw-r--r--animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js
index 15525f4..85badb0 100644
--- a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js
+++ b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js
@@ -1,7 +1,9 @@
import React from 'react'
+import { CURTAIN_COLOR_LOOKUP } from 'app/constants'
export const FullscreenImage = ({ element, media, transitionDuration }) => {
- const { color } = element
+ const color = element.color || CURTAIN_COLOR_LOOKUP.white
+
const item = media.lookup[element.settings.media_id]
const style = {
backgroundColor: color.backgroundColor,