diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-02 16:38:13 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-02 16:38:13 +0100 |
| commit | 4e2121e9160b627415a31f628fa3f00711138375 (patch) | |
| tree | a0d328b4e0bd3fd92c9326a52c2e22bab130bf2a /animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.image.js | |
| parent | faee66ed90bca15fa803deb733cbe9ccce9c19d8 (diff) | |
images can include images from galleries. command to duplicate annotations
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.js | 9 |
1 files changed, 8 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 85badb0..ead2591 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 @@ -10,13 +10,20 @@ export const FullscreenImage = ({ element, media, transitionDuration }) => { color: color.textColor, transitionDuration, } + let url; + if (item.type === 'gallery' && item.settings.display_lookup[element.annotation.settings.frame_index]) { + url = item.settings.display_lookup[element.annotation.settings.frame_index].url + } else { + url = item.settings.display.url + } + return ( <div className='fullscreen-element image' style={style} > <div style={{ - backgroundImage: 'url(' + item.settings.display.url + ')', + backgroundImage: 'url(' + url + ')', }} /> </div> ) |
