Merge pull request #24133 from Easya-Solutions/new-takepos-show-cat-prod-img-size

NEW adapt category and product pictures sizes on takepos
This commit is contained in:
Laurent Destailleur 2023-03-12 13:09:42 +01:00 committed by GitHub
commit b8655b99ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -248,6 +248,9 @@ div.wrapper{
text-align: center;
box-sizing: border-box;
background-color:#fff;
display: flex;
align-items: center;
justify-content: center;
}
div.wrapper2{
@ -262,10 +265,14 @@ div.wrapper2{
text-align: center;
box-sizing: border-box;
background-color:#fff;
display: flex;
align-items: center;
justify-content: center;
}
img.imgwrapper {
max-width: 100%;
max-height: 100%;
}
button:active{
@ -927,6 +934,7 @@ div#moreinfo, div#infowarehouse {
display: inline-flex;
align-items: center;
padding: 10px;
justify-content: normal;
}
.div5 .wrapper2.divempty {

View File

@ -1388,7 +1388,7 @@ if (!empty($conf->global->TAKEPOS_WEIGHING_SCALE)) {
echo '<span class="fa fa-chevron-right centerinmiddle" style="font-size: 5em; cursor: pointer;"></span>';
} else {
if (!getDolGlobalString('TAKEPOS_HIDE_CATEGORY_IMAGES')) {
echo '<img class="imgwrapper" height="100%" id="catimg'.$count.'" />';
echo '<img class="imgwrapper" id="catimg'.$count.'" />';
}
}
?>
@ -1433,7 +1433,7 @@ if (!empty($conf->global->TAKEPOS_WEIGHING_SCALE)) {
echo '<button type="button" id="probutton'.$count.'" class="productbutton" style="display: none;"></button>';
} else {
print '<div class="" id="proprice'.$count.'"></div>';
print '<img class="imgwrapper" height="100%" title="" id="proimg'.$count.'">';
print '<img class="imgwrapper" title="" id="proimg'.$count.'">';
}
}
?>