From e22cb8a789c0576738fe0965a8f4242a3d3c76af Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 27 Jul 2020 19:42:05 +0200 Subject: process list of paragraphs. fullscreen vs inline --- .../annotationForms/annotationForm.image.js | 21 +++++++++++++++++---- .../annotationForms/annotationForm.utility.js | 21 +-------------------- 2 files changed, 18 insertions(+), 24 deletions(-) (limited to 'animism-align/frontend/app/views/align/components/annotations/annotationForms') diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.image.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.image.js index 490c822..2509970 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.image.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.image.js @@ -23,11 +23,24 @@ export const AnnotationFormImage = ({ annotation, media, handleSettingsSelect, h defaultOption='Choose an image' onChange={handleSettingsSelect} /> - + + {(annotation.settings.fullscreen && !annotation.settings.inline) && ( + + )} ) } diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.utility.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.utility.js index 4abb50e..f3d25fc 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.utility.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.utility.js @@ -30,37 +30,18 @@ export const AnnotationFormCurtain = ({ annotation, handleSettingsChange, handle alwaysAccessible annotation={annotation} handleSettingsChange={handleSettingsChange} - handleSettingsSelect={handleSettingsSelect} /> ) } -export const AnnotationFormFullscreen = ({ annotation, alwaysAccessible, handleSettingsChange, handleSettingsSelect }) => { - if (!alwaysAccessible && !annotation.settings.fullscreen) { - return ( - - ) - } +export const AnnotationFormFullscreen = ({ annotation, handleSettingsChange }) => { const { fadeInDuration, fadeOutDuration, duration, start_ts, end_ts, fade_in_end_ts, fade_out_start_ts, } = annotationFadeTimings(annotation) return (
- {!alwaysAccessible && ( - - )}