enlargable show tiles

This commit is contained in:
kfj001 committed 2026-06-22 19:55:06 +00:00
1 parent 3b61a131c1
commit 86fbfa56bf
3 files changed
+44 -3

No files matched your search

+8
View File
@@ -24,6 +24,14 @@ export class ScheduleComponent {
private showService = inject(ShowService);
readonly config = inject(StationConfigService).config;
/** ID of the currently expanded show card — null means none. */
expandedShowId: number | null = null;
/** Toggle expansion: clicking the active card collapses it; clicking another expands it. */
toggleShow(showId: number): void {
this.expandedShowId = this.expandedShowId === showId ? null : showId;
}
/** Async pipe drives the template — guarantees change detection on every emission. */
readonly schedule$: Observable<ScheduleState> =
this.showService.getShows().pipe(