diff options
| author | Samuel Degueldre <sad@odoo.com> | 2019-12-09 06:51:17 +0000 |
|---|---|---|
| committer | Samuel Degueldre <sad@odoo.com> | 2019-12-31 07:58:10 +0000 |
| commit | f8632ec6f3485912aed850a4f59934061baa1cc7 (patch) | |
| tree | 4e96fff2c286bac54ba05a0ff0157868049e7c54 /addons/web_editor/static/src/scss | |
| parent | 38b5c759f3ade54aaaa620f2b5ab23c11e9cc71e (diff) | |
[IMP] web_editor: add an image-picker UserValueWidget
This commit introduces a new web_editor UserValueWidget on the
we-imagepicker tag, this widget allows the user to pick an image or a
video using the MediaDialog, and calls the containing snippet option's
method (specified via data-attribute) with the url of the chosen picture
or video as widgetValue. Videos are disabled by default and can be
accessed through the use of the data-allow-videos="selector" data
attribute, any $target that matches the selector will have videos
available in the media dialog.
Part of odoo/odoo#41561
task-2155808
Diffstat (limited to 'addons/web_editor/static/src/scss')
| -rw-r--r-- | addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index a5c1ed6195d..275166aac22 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -301,12 +301,19 @@ body.editor_enable.editor_has_snippets { > div { display: flex; align-items: baseline; + justify-content: flex-end; } } // Buttons - we-button.o_we_user_value_widget.active { - @include we-icon-button('\f00c', $o-we-color-success); + we-button.o_we_user_value_widget { + &.active { + @include we-icon-button('\f00c', $o-we-color-success); + } + + > div { + justify-content: flex-start; + } } // Checkboxes |
