style(epg): visual improvements

This commit is contained in:
4gray committed 2023-09-08 22:56:02 +02:00
1 parent 8774b77280
commit 88d471eb0b
3 files changed
+18 -32

No files matched your search

@@ -29,7 +29,7 @@
<mat-icon>chevron_left</mat-icon>
</button>
<span class="selected-date">
{{ dateToday | momentDate: 'YYYYMMDD':'MMMM Do, dddd' }}</span
{{ dateToday | momentDate: 'YYYYMMDD' : 'MMMM Do, dddd' }}</span
>
<button
class="next-day"
@@ -47,11 +47,12 @@
<mat-selection-list
id="program-list"
[multiple]="false"
hideSingleSelectionIndicator="true"
*ngIf="timeshiftUntil$ | async as timeshiftUntil"
>
<ng-container *ngIf="items?.length > 0; else epgNotAvailable">
<ng-container *ngFor="let item of items">
<mat-list-item
<mat-list-option
*ngIf="
item.start < timeshiftUntil || item.start >= timeNow;
else timeshiftItem
@@ -65,7 +66,7 @@
></app-epg-list-item>
</div>
<p matListItemLine>{{ item?.title[0]?.value }}</p>
</mat-list-item>
</mat-list-option>
<ng-template #timeshiftItem>
<mat-list-option
[value]="item"
@@ -17,17 +17,12 @@
flex-direction: column;
box-sizing: border-box;
display: flex;
flex: 1 1 120px;
max-height: 120px;
min-height: 120px;
.channel-info {
flex-direction: row;
box-sizing: border-box;
display: flex;
flex: 1 1 79px;
max-height: 79px;
min-height: 79px;
padding: 10px;
}
.channel-icon {
@@ -80,31 +75,11 @@ mat-selection-list {
}
#date-navigator {
flex-direction: row;
box-sizing: border-box;
display: flex;
flex: 1 1 40px;
max-height: 40px;
min-height: 40px;
justify-content: space-between;
align-items: center;
.selected-date {
font-size: 0.9em;
place-content: center;
align-items: center;
flex-direction: row;
box-sizing: border-box;
display: flex;
flex: 1 1 100%;
max-width: 100%;
}
.previous-day {
flex: 1 1 40px;
box-sizing: border-box;
}
.next-day {
flex: 1 1 40px;
box-sizing: border-box;
}
}
@@ -36,6 +36,7 @@ rect {
.parent {
display: flex;
background-color: black;
color: #fff;
}
#channels-column {
@@ -51,9 +52,10 @@ rect {
#epg-navigation {
display: flex;
background-color: black;
background-color: white;
margin-top: 30px;
border-bottom: 2px solid #fff;
align-items: center;
}
.today-date {
@@ -68,3 +70,11 @@ rect {
stroke-width: 2px;
stroke: white;
}
::ng-deep {
.dark-theme {
#epg-navigation {
background-color: black;
}
}
}