refactor: cleanup dish list item layout

This commit is contained in:
Rainer Killinger
2023-04-20 13:30:03 +02:00
parent f430621cb7
commit cd554e8403
3 changed files with 7 additions and 6 deletions

View File

@@ -14,17 +14,17 @@
--> -->
<div> <div>
<ion-text *ngIf="price && !soldOut"> <ion-text *ngIf="price && !soldOut" style="white-space: nowrap">
<h2> <h2>
{{ price | currency: 'EUR':'symbol':undefined:'de' }} {{ price | currency: 'EUR':'symbol':undefined:'de' }}
</h2> </h2>
</ion-text> </ion-text>
<ion-text *ngIf="soldOut" color="danger"> <ion-text *ngIf="soldOut" color="danger" class="sold-out" style="white-space: nowrap">
<h2> <h2>
{{ 'data.detail.offers.sold_out' | translate }} {{ 'data.detail.offers.sold_out' | translate }}
</h2> </h2>
</ion-text> </ion-text>
<p *ngIf="_offers[0].inPlace && !soldOut" class="place"> <p *ngIf="_offers[0].inPlace && !soldOut" class="place" style="white-space: nowrap">
<ion-icon name="pin_drop"></ion-icon>{{ _offers[0].inPlace.name <ion-icon name="pin_drop"></ion-icon>{{ _offers[0].inPlace.name
}}<span *ngIf="_offers.length > 1">...</span> }}<span *ngIf="_offers.length > 1">...</span>
</p> </p>

View File

@@ -43,6 +43,7 @@ ion-item {
ion-label { ion-label {
width: 100%; width: 100%;
margin-right: 0;
div { div {
display: flex; display: flex;

View File

@@ -14,8 +14,8 @@
--> -->
<ion-grid> <ion-grid>
<ion-row> <ion-row class="ion-justify-content-between">
<ion-col> <ion-col size="11" size-sm="10">
<div class="ion-text-wrap"> <div class="ion-text-wrap">
<ion-label class="title">{{ 'name' | thingTranslate: item }}</ion-label> <ion-label class="title">{{ 'name' | thingTranslate: item }}</ion-label>
<p class="title-sub ion-hide-sm-down"> <p class="title-sub ion-hide-sm-down">
@@ -24,7 +24,7 @@
<stapps-dish-characteristics [item]="item"></stapps-dish-characteristics> <stapps-dish-characteristics [item]="item"></stapps-dish-characteristics>
</div> </div>
</ion-col> </ion-col>
<ion-col width-10 text-right> <ion-col>
<div class="ion-text-end"> <div class="ion-text-end">
<stapps-offers-in-list *ngIf="item.offers" [offers]="item.offers"></stapps-offers-in-list> <stapps-offers-in-list *ngIf="item.offers" [offers]="item.offers"></stapps-offers-in-list>
</div> </div>