Add option TAKEPOS_USE_ARROW_ON_NAVBAR to solve pb with new nav bar

- It become difficult to use the search
- The nav appears also when on desktop when not needed
This commit is contained in:
Laurent Destailleur 2022-12-11 13:46:55 +01:00
parent 51454102ae
commit 4e06d76206

View File

@ -337,8 +337,18 @@ div.paymentbordline
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0 auto; margin: 0 auto;
overflow-x: hidden; <?php
overfloy-y: scroll; if (getDolGlobalString('TAKEPOS_USE_ARROW_ON_NAVBAR')) {
?>
overflow-x: hidden;
overfloy-y: scroll;
<?
} else {
?>
overflow: visible;
<?php
}
?>
box-sizing: border-box; box-sizing: border-box;
} }
@ -844,6 +854,7 @@ div#moreinfo, div#infowarehouse {
display: none; display: none;
} }
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
.div4 { .div4 {
height: auto; height: auto;
@ -945,6 +956,16 @@ div#moreinfo, div#infowarehouse {
} }
} }
<?php
if (!getDolGlobalString('TAKEPOS_USE_ARROW_ON_NAVBAR')) {
?>
.arrows {
display: none;
}
<?php } else { ?>
.indicator { .indicator {
background: #00000042; background: #00000042;
padding: 15px 5px; padding: 15px 5px;
@ -1049,3 +1070,5 @@ html {
.topnav.overflow .arrows { .topnav.overflow .arrows {
display: flex; display: flex;
} }
<?php } ?>