Skip to content

Commit f0cea66

Browse files
committed
Make booking form look nicer
1 parent 6933ff7 commit f0cea66

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.booking-options {
2+
display: flex;
3+
flex-direction: column;
4+
gap: 1rem;
5+
margin: 0.5rem;
6+
}
7+
8+
.booking-options label {
9+
display: inline-block;
10+
width: 360px;
11+
margin-right: 1rem;
12+
}
13+
14+
.booking-actions {
15+
display: flex;
16+
flex-direction: row-reverse;
17+
gap: 1rem;
18+
}

projects/train-platform/src/booking/booking/booking.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div>
1+
<div class="booking-options">
22
<div>
33
<label>{{ "booking.reserveSeatQuestion" | translate }}</label>
44
<input type="checkbox" [(ngModel)]="reserveSeat" />
@@ -9,6 +9,6 @@
99
</div>
1010
</div>
1111

12-
<div>
12+
<div class="booking-actions">
1313
<button (click)="book()">{{ "booking.bookAction" | translate }}</button>
1414
</div>

0 commit comments

Comments
 (0)