[FIX] website, *: fix elements position in fullscreen or/and edit mode
* = website_livechat Before this commit, some elements (e.g. sidebar, livechat button) were not correctly positioned in edit mode or/and full screen mode. task-2677132 X-original-commit: 42db4d432d39a8db87c66cd682064ab76fd0aa27 Part-of: odoo/odoo#81151
This commit is contained in:
@@ -1023,7 +1023,7 @@ header {
|
||||
}
|
||||
}
|
||||
|
||||
.o_connected_user:not(.editor_has_snippets) header & {
|
||||
.o_connected_user:not(.editor_has_snippets):not(.o_fullscreen) header & {
|
||||
// TODO this has to be reviewed
|
||||
$-header-template: o-website-value('header-template');
|
||||
@if not index(('Contact', 'boxed', 'magazine'), $-header-template) {
|
||||
@@ -1133,7 +1133,7 @@ header {
|
||||
}
|
||||
}
|
||||
}
|
||||
body.o_connected_user {
|
||||
body.o_connected_user:not(.o_fullscreen) {
|
||||
&:not(.editor_has_snippets) #wrapwrap > header {
|
||||
top: $o-navbar-height;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.editor_has_snippets {
|
||||
.editor_has_snippets:not(.o_fullscreen) {
|
||||
.o_livechat_button, .o_thread_window {
|
||||
// TODO add this in an edit-mode only file in master (in 14.0 that asset
|
||||
// would be website.assets_wysiwyg...)
|
||||
@@ -6,6 +6,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
@if o-website-value('header-template') == 'sidebar' and $-hamburger-right {
|
||||
@include media-breakpoint-up(lg) {
|
||||
.o_livechat_button, .o_thread_window {
|
||||
transform: translate(- o-website-value('sidebar-width'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.o_website_livechat_button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
Reference in New Issue
Block a user