From a8ee18e172d406e846764b1dd79c65ee270ca7f4 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 5 Aug 2016 11:23:25 +0200 Subject: [FIX] web_editor: make save/discard btns visible when too many options The editor bar is sometimes filled with too many options, and these hide the save and discard buttons on small screens. To solve the problem, the description option (which take a lot of space) has now a max-width and the save and discard buttons are always on top. --- addons/web_editor/static/src/less/web_editor.ui.less | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'addons/web_editor/static/src/less/web_editor.ui.less') diff --git a/addons/web_editor/static/src/less/web_editor.ui.less b/addons/web_editor/static/src/less/web_editor.ui.less index a9a809875ce..19f97aa4d19 100644 --- a/addons/web_editor/static/src/less/web_editor.ui.less +++ b/addons/web_editor/static/src/less/web_editor.ui.less @@ -12,10 +12,13 @@ form.navbar-form { height: 100%; + z-index: 1060; margin: 0; padding: 0; .o-position-absolute(@right: -@o-we-sidebar-width); .o-transition(right, 0.4s, @o-we-md-ease); + border-left: 1px solid @o-we-color-divider; + background-color: inherit; .btn-group { height: 100%; @@ -660,6 +663,7 @@ html[lang] > body.editor_enable{ .popover-content { height: @odoo-navbar-height; + white-space: nowrap; .btn { height: @odoo-navbar-height; @@ -674,6 +678,11 @@ html[lang] > body.editor_enable{ border-top: 2px solid @o-we-color-text-normal; color: @o-we-color-text-normal; } + + .o_image_alt { + .o-text-overflow(inline-block); + max-width: 100px; + } } .btn.active { border-top: 2px solid white; -- cgit v1.2.3 From 369bcf610c66fadd3d411181d0a78e555cc18c0e Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 10 Aug 2016 11:30:33 +0200 Subject: [FIX] web_editor: paragraph dropdown style Before commit a8ee18e172d406e846764b1dd79c65ee270ca7f4, the paragraph alignment dropdown menu was too large for its content, so it was ugly. After that commit, it became too small for its content, which is even more ugly. This fix sets the width of this specific dropdown so that its content fills exactly in (as with original summernote). --- addons/web_editor/static/src/less/web_editor.ui.less | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addons/web_editor/static/src/less/web_editor.ui.less') diff --git a/addons/web_editor/static/src/less/web_editor.ui.less b/addons/web_editor/static/src/less/web_editor.ui.less index 19f97aa4d19..38bd5b7cd87 100644 --- a/addons/web_editor/static/src/less/web_editor.ui.less +++ b/addons/web_editor/static/src/less/web_editor.ui.less @@ -712,6 +712,10 @@ html[lang] > body.editor_enable{ } } } + .note-para .dropdown-menu { + min-width: 228px; + } + #colors_preview { padding: 4px; border-radius: 2px; -- cgit v1.2.3