diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-09-22 12:20:56 +0000 |
|---|---|---|
| committer | Benjamin Vray <bvr@odoo.com> | 2020-09-29 10:03:58 +0000 |
| commit | 9a04c8146c799ecd5efa6ba42582d4664a1a3a51 (patch) | |
| tree | b55d22efe6fc8ab0d2b20b33960fe3237f61acfc /addons/web_editor/static/src | |
| parent | bb77cd2961e71deaf048cbaad20f8cb72a646cab (diff) | |
[FIX] website_blog, web_editor: fix tag layout issue in blog
Before this commit the layout of the front-end edition of tags in blog
was broken. And the default value of the select element was not filled.
We fixed those design issues and also improve some small design
details. And for the select issue, we add a return value in the
computeWidgetState of the addTag method because even if the value will
still be empty we need to return something because we want the select
to be filled by the default value of setValue() wich is "/".
task-2312878
closes odoo/odoo#58307
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 2d5c5b8385b..564d4ed94be 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -1275,19 +1275,22 @@ body.editor_enable.editor_has_snippets { } .o_we_tag { - display: inline-block; - padding: $o-we-sidebar-content-field-label-spacing; - border: $o-we-item-border-width solid $o-we-item-border-color; + padding: ($o-we-sidebar-content-field-label-spacing / 2) $o-we-sidebar-content-field-label-spacing; border-radius: 5px; background-color: $o-we-bg-darkest; + .fa { - margin: 0; + margin: 0 0 0 5px; } } .o_we_tag_wrapper { - display: inline-block; - margin: ($o-we-sidebar-content-field-label-spacing * 1.5) $o-we-sidebar-content-field-label-spacing 0 0; + display: inline-flex; + margin: $o-we-sidebar-content-field-label-spacing ($o-we-sidebar-content-field-label-spacing / 2) 0 0; + } + .o_wblog_new_tag { + & div, & we-input { + width: 100% !important; + } } } |
