summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.gallery.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.gallery.js')
-rw-r--r--animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.gallery.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.gallery.js b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.gallery.js
index 9cd2787..5490b35 100644
--- a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.gallery.js
+++ b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.gallery.js
@@ -41,8 +41,8 @@ export const FullscreenGallery = ({ element, media, transitionDuration }) => {
}
export const FullscreenCarousel = ({ element, media, transitionDuration }) => {
- const { color } = element
const item = media.lookup[element.settings.media_id]
+ const color = element.color || CURTAIN_COLOR_LOOKUP.white
const style = {
backgroundColor: color.backgroundColor,
color: color.textColor,
@@ -50,7 +50,7 @@ export const FullscreenCarousel = ({ element, media, transitionDuration }) => {
}
return (
<div
- className='fullscreen-element carousel'
+ className={'fullscreen-element carousel ' + color.label}
style={style}
>
{element.settings.title && <div className='heading'>{element.settings.title}</div>}