Skip to content
Snippets Groups Projects
Commit 94fd5221 authored by Romain Derie's avatar Romain Derie Committed by qsm-odoo
Browse files

[FIX] website: prevent menu to float in the middle of the screen in edit

- Select the "Sidebar" header template
- Position it to the left (it's left by default)
- Select a website layout != 'full', like 'framed'

In edit mode, the menu will be floating in the middle of the screen.

Probably a bad adaption in commit [1] which refactored the code to move
the edition panel from left to right.
The rule was initially working fine for the left panel since [2].

Note that one might think that the rule should have been kept and
adapted to add the same behavior when the menu is positioned right but
this case was actually handled with [3].

[1]: https://github.com/odoo/odoo/commit/2abe8517063b2696cc89e9a453dcc3921fb3b8c7
[2]: https://github.com/odoo/odoo/commit/b30e47d81c1f71a66b1b6aa6846b52e080c25643
[3]: https://github.com/odoo/odoo/commit/f693c71b8c1b03367e00ec8f0f7854a239a9f097



closes odoo/odoo#107972

X-original-commit: d8674bf6
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
parent 8e390fa1
Branches
Tags
No related merge requests found
......@@ -205,16 +205,6 @@ body.editor_enable.editor_has_snippets {
}
}
.editor_enable {
@if o-website-value('header-template') == 'sidebar' {
#wrapwrap > header {
@if o-website-value('hamburger-position') != 'right' {
right: $o-we-sidebar-width;
}
}
}
}
// s_countdown preview classes
body.editor_enable {
.s_countdown {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment