From ba2d6af125ae3e2ba4a372d760c0e91d3ccc52f3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 3 Nov 2020 20:11:06 +0100 Subject: various image size styles --- .../player/components.inline/inline.image.js | 39 +++++++++++----------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/player/components.inline') diff --git a/animism-align/frontend/app/views/viewer/player/components.inline/inline.image.js b/animism-align/frontend/app/views/viewer/player/components.inline/inline.image.js index df30da1..ba3df4c 100644 --- a/animism-align/frontend/app/views/viewer/player/components.inline/inline.image.js +++ b/animism-align/frontend/app/views/viewer/player/components.inline/inline.image.js @@ -40,24 +40,25 @@ export const MediaImage = ({ paragraph, media, currentParagraph, currentAnnotati } // "fullscreen-style inline images" - // if (annotation.settings.fullscreen) { - // return ( - //
onAnnotationClick(e, paragraph, annotation)}> - //
- //
{SpeakerIcon}
- //
- // - //
- // ) - // } else { - return ( -
onAnnotationClick(e, paragraph, annotation)}> -
- - {!annotation.settings.hide_speaker_icon &&
{SpeakerIcon}
} + if (annotation.settings.inline_size === 'fullscreen') { + return ( +
onAnnotationClick(e, paragraph, annotation)}> +
+
{SpeakerIcon}
+
+
- {captionItem && } -
- ) - // } + ) + } else { + const imageClassName = "image-container " + (annotation.settings.inline_size || "") + return ( +
onAnnotationClick(e, paragraph, annotation)}> +
+ + {!annotation.settings.hide_speaker_icon &&
{SpeakerIcon}
} +
+ {captionItem && } +
+ ) + } } -- cgit v1.2.3-70-g09d2