From a3e027166da9ca508118cfc596c385927419404a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 6 Aug 2020 14:42:18 +0200 Subject: different sizes of paragraph --- .../annotations/annotationTypes/annotationTypes.image.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/align/components/annotations') diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.image.js b/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.image.js index 70127b8..7c97d99 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.image.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.image.js @@ -21,10 +21,17 @@ export const AnnotationImage = ({ y, annotation, media, timeline, selected, onCl const fadeInHeight = durationToHeight(fadeInDuration, timeline) const fadeOutHeight = durationToHeight(fadeOutDuration, timeline) + const style = { + top: y, + } + if (annotation.settings.fullscreen && !annotation.settings.inline) { + style.height = durationHeight + } + return (
onClick(e, annotation)} onDoubleClick={e => onDoubleClick(e, annotation)} > -- cgit v1.2.3-70-g09d2