[FIX] web_editor: make toolbar scrollable in mass_mailing on mobile
Before this commit, the web_editor toolbar wasn't horizontally scrollable and part ot the items were not displayed. To fix this, we have to revert back the initial position on some elements. closes odoo/odoo#37076 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
@@ -416,3 +416,22 @@ img.o_we_selected_image {
|
||||
img.o_we_custom_image.mx-auto {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
#web_editor-top-edit {
|
||||
position: initial !important;
|
||||
height: initial !important;
|
||||
top: initial !important;
|
||||
left: initial !important;
|
||||
|
||||
#web_editor-toolbars .popover-body {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
|
||||
.btn-group {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,23 @@ body.editor_enable.editor_has_snippets {
|
||||
}
|
||||
}
|
||||
|
||||
// Mobile fix for mass mailing
|
||||
@include media-breakpoint-down(md) {
|
||||
body.editor_enable.editor_has_snippets {
|
||||
padding-left: inherit !important;
|
||||
|
||||
#web_editor-top-edit {
|
||||
position: initial !important;
|
||||
height: initial !important;
|
||||
top: initial !important;
|
||||
left: initial !important;
|
||||
|
||||
.note-popover .popover {
|
||||
left: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// SNIPPET PANEL
|
||||
#oe_snippets {
|
||||
@include o-w-preserve-btn;
|
||||
|
||||
Reference in New Issue
Block a user