refs #6200 Style fixes
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2023-10-09 20:20:01 +02:00
parent 6915e06c71
commit 3977b258d3
5 changed files with 25 additions and 6 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (23.40.1) stable; urgency=low hedera-web (23.40.2) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -203,6 +203,12 @@ const Catalog = new Class({
this.hideMenu(); this.hideMenu();
} }
,itemRenderer(builder, form) {
var minQuantity = builder.$.minQuantity;
minQuantity.style.display = form.$.minQuantity
? 'block' : 'hidden';
}
,realmRenderer(builder, form) { ,realmRenderer(builder, form) {
var link = builder.$.link; var link = builder.$.link;
link.href = this.hash.make({ link.href = this.hash.make({
@ -273,6 +279,8 @@ const Catalog = new Class({
orderId: this.orderId orderId: this.orderId
}); });
this.$.cardPopup.show(event.currentTarget); this.$.cardPopup.show(event.currentTarget);
this.$.cardMinQuantity.style.display = form.$.minQuantity
? 'block' : 'none';
} }
,onAddLotClick(column, value, row) { ,onAddLotClick(column, value, row) {

View File

@ -192,15 +192,20 @@
margin: 0; margin: 0;
margin-bottom: 1px; margin-bottom: 1px;
} }
& > .min-quantity {
bottom: 30px;
right: 0;
}
} }
.min-quantity { .min-quantity {
position: absolute; position: absolute;
bottom: 30px; bottom: 30px;
right: 0; right: 0;
font-size: .8rem;
& > span { & > span {
font-size: 18px; font-size: 16px;
vertical-align: middle; vertical-align: middle;
} }
} }
@ -383,6 +388,11 @@
margin-top: 15px 0; margin-top: 15px 0;
font-size: .9rem; font-size: .9rem;
} }
& > .min-quantity {
bottom: 0;
right: 0;
padding: 14px;
}
} }
& > .lots-grid { & > .lots-grid {
border-top: 1px solid #DDD; border-top: 1px solid #DDD;

View File

@ -149,7 +149,8 @@
id="grid-view" id="grid-view"
empty-message="_Choose filter from right menu" empty-message="_Choose filter from right menu"
form-id="item" form-id="item"
model="items"> model="items"
renderer="itemRenderer">
<custom> <custom>
<div <div
id="item-box" id="item-box"
@ -203,7 +204,7 @@
{{Vn.Value.format(item.price, '%.02d€')}} {{Vn.Value.format(item.price, '%.02d€')}}
</span> </span>
</div> </div>
<div class="min-quantity" title="_MinimalQuantity"> <div id="min-quantity" class="min-quantity" title="_MinimalQuantity">
<span class="htk-icon material-symbols-rounded"> <span class="htk-icon material-symbols-rounded">
production_quantity_limits production_quantity_limits
</span> </span>
@ -467,7 +468,7 @@
</tr> </tr>
</custom> </custom>
</htk-repeater> </htk-repeater>
<div class="min-quantity" title="_MinimalQuantity"> <div id="card-min-quantity" class="min-quantity" title="_MinimalQuantity">
{{card.minQuantity}} {{card.minQuantity}}
<span class="htk-icon material-symbols-rounded"> <span class="htk-icon material-symbols-rounded">
production_quantity_limits production_quantity_limits

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "23.40.1", "version": "23.40.2",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {