background-color: #fff6e6;
}
+.flex {
+ display: flex;
+ justify-content: center;
+}
+
.button {
- display: inline-block;
- margin: 0.5em 0;
+ display: block;
+ margin: 0.5em;
+ flex-basis: 15%;
}
.form {
}
@media only screen and (min-width: 46.875em) {
+ .flex {
+ justify-content: flex-start;
+ }
+
h2 {
text-align: left;
}
class="subtitle"
[class.active]="formSubtitleVisible">
<h2>{{subtitle.Subtitle}}</h2>
- <button class="button"
- type="button"
- (click)="editSubtitle()">Bearbeiten</button>
- <button class="button"
- type="button"
- id="buttonFood"
- (click)="insertNewFood(subtitle.Foods.length)">Speise hinzufügen</button>
+ <div class="flex">
+ <button class="button"
+ type="button"
+ (click)="editSubtitle()">Bearbeiten</button>
+ <button class="button"
+ type="button"
+ id="buttonFood"
+ (click)="insertNewFood(subtitle.Foods.length)">Speise hinzufügen</button>
+ </div>
<form #formSubtitle="ngForm" *ngIf="formSubtitleVisible"
(keypress)="onKeypressEnter($event)"
<div *ngFor="let food of subtitle.Foods; let i = index" cdkDrag>
<app-food [food]="food"></app-food>
- <button class="button"
- type="button"
- (click)="insertNewFood(i)">Einfügen</button>
- <button class="button"
- type="button"
- (click)="duplicateFood(i)">Duplizieren</button>
- <button class="button"
- type="button"
- (click)="removeFood(i)">Löschen</button>
+ <div class="flex">
+ <button class="button"
+ type="button"
+ (click)="insertNewFood(i)">Einfügen</button>
+ <button class="button"
+ type="button"
+ (click)="duplicateFood(i)">Duplizieren</button>
+ <button class="button"
+ type="button"
+ (click)="removeFood(i)">Löschen</button>
+ </div>
</div>
</div>