[FIX] web_editor: avoid horizontal scrollbar in right panel
In edit mode, if the grid mode is toggled and if there are enough options in the right panel to have a vertical scrollbar (e.g. when we click on an image to have the image options), a horizontal scrollbar appears. This happens because the "Add Elements" widget is too large and it therefore overflows. This commit improves this widget style so it does not overflow, which will prevent the horizontal scrollbar from appearing. task-3098222 closes odoo/odoo#119288 X-original-commit: 784a8f36471a6b7c05452f6b39ee61f6b859d9c9 Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
This commit is contained in:
@@ -2531,16 +2531,16 @@ we-button:hover .o_we_shape_animated_label > span {
|
||||
// GRID LAYOUT
|
||||
we-button.o_grid {
|
||||
min-width: fit-content;
|
||||
padding-left: 3px !important;
|
||||
padding-right: 3px !important;
|
||||
padding-left: 4.5px !important;
|
||||
padding-right: 4.5px !important;
|
||||
}
|
||||
|
||||
we-select.o_grid we-toggler {
|
||||
width: fit-content !important;
|
||||
}
|
||||
|
||||
we-button-group.o_grid {
|
||||
min-width: fit-content !important;
|
||||
we-button-group.o_grid we-selection-items {
|
||||
width: fit-content !important;
|
||||
}
|
||||
|
||||
// Background grid.
|
||||
|
||||
Reference in New Issue
Block a user