-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove desktop/mobile variant, in favor of responsive desktop view - add heading for each date - update `min/max-width`
- Loading branch information
1 parent
a55be92
commit f1c22f2
Showing
8 changed files
with
46 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 17 additions & 20 deletions
37
src/app/shared/components/dates-overview/dates-overview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
@if (appointment) { | ||
<div class="date-time-overview"> | ||
<table class="table mobile d-table d-lg-none w-100" data-id="overviewDatesMobile"> | ||
<div class="date-time-overview mt-2 table-responsive"> | ||
<table class="table table-borderless d-inline-block mt-1" data-id="overviewDates"> | ||
<thead> | ||
<caption class="visually-hidden">{{ 'poll.caption' | translate }}</caption> | ||
<tr> | ||
@for (date of appointment.suggestedDates; track date; let i = $index) { | ||
<th scope="row"> | ||
{{ 'date.date' | translate }} {{ i + 1 }} | ||
</th> | ||
} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
@for (date of appointment.suggestedDates; track date; let i = $index) { | ||
<tr> | ||
<td> | ||
<app-suggested-date [date]="date" [index]="i"></app-suggested-date> | ||
</td> | ||
</tr> | ||
<td> | ||
<app-suggested-date [date]="date" [index]="i"></app-suggested-date> | ||
</td> | ||
} | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="table-responsive d-none d-lg-block"> | ||
<table class="table table-borderless desktop d-inline-block mt-3 mb-1" data-id="overviewDatesDesktop"> | ||
<tbody> | ||
<tr> | ||
@for (date of appointment.suggestedDates; track date; let i = $index) { | ||
<td> | ||
<app-suggested-date [date]="date" [index]="i"></app-suggested-date> | ||
</td> | ||
} | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
} |
35 changes: 17 additions & 18 deletions
35
src/app/shared/components/dates-overview/dates-overview.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
@import "src/default.scss"; | ||
|
||
.date-time-overview table.mobile { | ||
tr td { | ||
border-top: 1px solid $dark-gray; | ||
} | ||
.date-time-overview table { | ||
color: $primary; | ||
|
||
th { | ||
min-width: $suggested-date-desktop-min-width; | ||
max-width: $suggested-date-desktop-max-width; | ||
|
||
tr:first-child td { | ||
border-top: none; | ||
font-size: medium; | ||
text-align: center; | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
.date-time-overview table.desktop { | ||
td { | ||
td, | ||
th { | ||
padding: 0; | ||
min-width: $suggested-date-desktop-min-width; | ||
max-width: $suggested-date-desktop-max-width; | ||
border-right: 1px solid $dark-gray; | ||
border-right: 1px solid $divider-border-color; | ||
} | ||
|
||
td:last-child { | ||
border-right: none; | ||
td, | ||
th { | ||
&:last-child { | ||
border-right: none; | ||
} | ||
} | ||
} | ||
|
||
.btn .btn-next { | ||
min-width: 172px !important; | ||
} | ||
|
||
.table { | ||
color: $primary; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters