diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-06 14:42:18 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-06 14:42:18 +0200 |
| commit | a3e027166da9ca508118cfc596c385927419404a (patch) | |
| tree | 25f6bdba512ba853c95fd19fb513f984ef7062e1 /animism-align/frontend/app/views/align/components | |
| parent | d694c33c873f766cbeafbe8f8dfdc4a0c762e8ad (diff) | |
different sizes of paragraph
Diffstat (limited to 'animism-align/frontend/app/views/align/components')
| -rw-r--r-- | animism-align/frontend/app/views/align/components/annotations/annotationTypes/annotationTypes.image.js | 9 |
1 files changed, 8 insertions, 1 deletions
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 ( <div className={className} - style={{ top: y, height: durationHeight }} + style={style} onClick={e => onClick(e, annotation)} onDoubleClick={e => onDoubleClick(e, annotation)} > |
