fix: canteen module layout

This commit is contained in:
Rainer Killinger
2021-06-01 13:06:34 +02:00
parent b56a428c92
commit 6f7c680ed8
5 changed files with 25 additions and 7 deletions

View File

@@ -7,7 +7,7 @@
<ion-title>{{ 'data.detail.TITLE' | translate }}</ion-title> <ion-title>{{ 'data.detail.TITLE' | translate }}</ion-title>
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>
<ion-content class="ion-padding"> <ion-content class="ion-no-padding">
<ion-refresher slot="fixed" (ionRefresh)="refresh($event.target)"> <ion-refresher slot="fixed" (ionRefresh)="refresh($event.target)">
<ion-refresher-content <ion-refresher-content
pullingIcon="chevron-down-outline" pullingIcon="chevron-down-outline"

View File

@@ -27,6 +27,7 @@ import {PlaceMensaService} from './place-mensa-service';
providers: [PlaceMensaService], providers: [PlaceMensaService],
selector: 'stapps-place-mensa-detail-content', selector: 'stapps-place-mensa-detail-content',
templateUrl: 'place-mensa.html', templateUrl: 'place-mensa.html',
styleUrls: ['place-mensa.scss'],
}) })
export class PlaceMensaDetailComponent implements AfterViewInit { export class PlaceMensaDetailComponent implements AfterViewInit {
/** /**

View File

@@ -1,11 +1,9 @@
<ng-container> <ng-container>
<div *ngIf="dishes | async as dishes; else loading"> <div *ngIf="dishes | async as dishes; else loading">
<ion-segment [(ngModel)]="selectedDay"> <ion-segment [(ngModel)]="selectedDay" mode="md">
<ion-segment-button <ion-segment-button *ngFor="let day of dishes | keyvalue" [value]="day.key">
*ngFor="let date of dishes | keyvalue" <ion-label class="ion-hide-sm-down">{{day.key | amLocal | amDateFormat:'dddd, l'}}</ion-label>
[value]="date.key" <ion-label class="ion-hide-sm-up">{{day.key | amLocal | amDateFormat:'dd, l'}}</ion-label>
>
<ion-label>{{ date.key | amDateFormat: 'dddd, L' }}</ion-label>
</ion-segment-button> </ion-segment-button>
</ion-segment> </ion-segment>
<div [ngSwitch]="selectedDay"> <div [ngSwitch]="selectedDay">

View File

@@ -0,0 +1,18 @@
ion-segment-button {
text-transform: none;
}
ion-segment {
justify-content: space-between;
overflow: auto;
&::-webkit-scrollbar {
width: 0;
height: 0;
display: none;
}
ion-segment-button.segment-button {
flex: 1 0 100px;
}
}

View File

@@ -9,6 +9,7 @@
@import "~@ionic/angular/css/text-alignment.css"; @import "~@ionic/angular/css/text-alignment.css";
@import "~@ionic/angular/css/text-transformation.css"; @import "~@ionic/angular/css/text-transformation.css";
@import "~@ionic/angular/css/flex-utils.css"; @import "~@ionic/angular/css/flex-utils.css";
@import "~@ionic/angular/css/display.css";
/* StApps */ /* StApps */