[FIX] point_of_sale: navbar with tempScreen

With the introduction of Bootstrap in the PoS, the navbar was still
accessible when showing a tempScreen as the PartnerListScreen. This is
not intended as the tempScreen act "like a big popup" where the user
must do the action on the tempScreen before doing anything else.

The problem here is that the Bootstrap integretion forgot to add the
correct style to the div "block-top-header" which is done in this PR
(background-color, width, height and position).

closes odoo/odoo#130736

Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
Adrien Guilliams (adgu)
2023-08-09 14:36:08 +02:00
parent 205fad17a3
commit 9f483753bc
2 changed files with 9 additions and 1 deletions
@@ -3,7 +3,7 @@
<t t-name="point_of_sale.Navbar" owl="1">
<div class="pos-topheader d-flex w-100 p-0 m-0 bg-white border-bottom">
<div t-if="pos.tempScreen" class="block-top-header" />
<div t-if="pos.tempScreen" class="block-top-header position-absolute top-0 start-0 bg-black opacity-50 w-100 h-inherit z-1000" />
<div t-if="!ui.isSmall" class="pos-branding d-flex justify-content-start flex-grow-1 h-100 p-0 my-0 text-start">
<img class="pos-logo h-75 ms-3 me-auto align-self-center" t-on-click="() => debug.toggleWidget()" src="/web/static/img/logo.png" alt="Logo" />
</div>
@@ -52,6 +52,14 @@ button {
}
}
.z-1000 {
z-index: 1000;
}
.h-inherit {
height: inherit;
}
/* ********* The Webkit Scrollbar ********* */
.pos *::-webkit-scrollbar{