summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-03 18:17:03 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-03 18:17:03 +0100
commit3684497c695edb23748d007564a3a6f8c46b403c (patch)
tree3970258df0c81abb7cc3a6b8ca07ba7ba0688da2 /animism-align/frontend/app/views/align/components/annotations
parentc89b17daf372c1cc6f83e5b456f888676990e721 (diff)
fullscreen images in the inline flow
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.image.js22
1 files changed, 16 insertions, 6 deletions
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 b06916f..3d52db8 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
@@ -59,12 +59,22 @@ export const AnnotationFormImage = ({ annotation, media, handleSettingsSelect, h
/>
{(annotation.settings.fullscreen && !annotation.settings.inline) && (
- <Checkbox
- label="Hide inline image"
- name="hide_poster_inline"
- checked={annotation.settings.hide_poster_inline}
- onChange={handleSettingsSelect}
- />
+ <div>
+ <Checkbox
+ label="Hide inline image"
+ name="hide_poster_inline"
+ checked={annotation.settings.hide_poster_inline}
+ onChange={handleSettingsSelect}
+ />
+ <Select
+ title='Inline background color'
+ name='inline_color'
+ selected={annotation.settings.inline_color}
+ options={CURTAIN_COLOR_SELECT_OPTIONS}
+ defaultOption='Pick a color'
+ onChange={handleSettingsSelect}
+ />
+ </div>
)}
<Checkbox