Tweak New Transaction - Items page styles so content fits on narrow screens
All checks were successful
Docker Image CI / build (push) Successful in 3m5s

This commit is contained in:
2024-10-14 18:26:07 +01:00
parent e5478a426b
commit 79850c46b5
4 changed files with 44 additions and 6 deletions

View File

@ -33,10 +33,10 @@
</div>
<div class="card__content card__content--table">
<Table Items="Transaction.Items.AsQueryable()" CellClass="table__cell--compact">
<Table Items="Transaction.Items.AsQueryable()" HeaderClass="table__header--compact" CellClass="table__cell--compact">
<ChildContent>
<TemplateTableColumn Title="Name" Fill="true" Context="item">
@itemNames.GetValueOrDefault(item.ItemId)
<div class="line-clamp-4">@itemNames.GetValueOrDefault(item.ItemId)</div>
</TemplateTableColumn>
<PropertyTableColumn Property="i => i.Price" CompositeFormat='i => i.Unit == null ? "{0:c}" : ("{0:c}/" + i.Unit)' />
<PropertyTableColumn Property="i => i.Quantity" CompositeFormat='i => i.Unit == null ? "{0:f0}" : ("{0:f3}" + i.Unit)'>

View File

@ -23,7 +23,7 @@
</header>
<div class="card__content card__content--table">
<Table Items="Transaction.Promotions.AsQueryable()" CellClass="table__cell--compact">
<Table Items="Transaction.Promotions.AsQueryable()" HeaderClass="table__header--compact" CellClass="table__cell--compact">
<ChildContent>
<PropertyTableColumn Property="p => p.Name" Fill="true" />
<TemplateTableColumn Title="Items" Align="Align.End" Context="promotion">