From 710771f5f72761a42164fda6cdc6ad14180f25d0 Mon Sep 17 00:00:00 2001 From: akastijn Date: Sun, 2 Nov 2025 22:48:27 +0100 Subject: [PATCH] Integrate `HeaderComponent` into Staff Playtime view, update layout with full-height styling, and enhance UI consistency. --- .../head-mod/staff-pt/staff-pt.component.html | 72 ++++++++++--------- .../head-mod/staff-pt/staff-pt.component.ts | 3 +- frontend/src/styles.scss | 4 ++ 3 files changed, 46 insertions(+), 33 deletions(-) diff --git a/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.html b/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.html index c6626fe..bb3ae52 100644 --- a/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.html +++ b/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.html @@ -1,40 +1,48 @@ -
-
- +
+ -
{{ weekLabel() }}
+
+
+
+
+ - -
+
{{ weekLabel() }}
- - - - - + + - - - - +
Staff Member {{ row.staff_member }} Playtime (h:mm) {{ minutesToHm(row.playtime) }}
+ + + + - - - - + + + + - - + + + + - @if (!staffPt()?.length) { - - - - } -
Staff Member {{ row.staff_member }} Last Played {{ row.last_played | date:'medium' }} Playtime (h:mm) {{ minutesToHm(row.playtime) }}
Last Played {{ row.last_played | date:'medium' }}
No data for this week.
+ + + + @if (!staffPt()?.length) { + + No data for this week. + + } + +
+
diff --git a/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.ts b/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.ts index 97cb66a..9bbefb8 100644 --- a/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.ts +++ b/frontend/src/app/pages/head-mod/staff-pt/staff-pt.component.ts @@ -5,11 +5,12 @@ import {MatButtonModule} from '@angular/material/button'; import {MatIconModule} from '@angular/material/icon'; import {MatTooltipModule} from '@angular/material/tooltip'; import {SiteService, StaffPlaytime} from '@api'; +import {HeaderComponent} from '@header/header.component'; @Component({ selector: 'app-staff-pt', standalone: true, - imports: [CommonModule, MatTableModule, MatButtonModule, MatIconModule, MatTooltipModule, DatePipe], + imports: [CommonModule, MatTableModule, MatButtonModule, MatIconModule, MatTooltipModule, DatePipe, HeaderComponent], templateUrl: './staff-pt.component.html', styleUrl: './staff-pt.component.scss' }) diff --git a/frontend/src/styles.scss b/frontend/src/styles.scss index 92f7fb1..3cfd2b9 100644 --- a/frontend/src/styles.scss +++ b/frontend/src/styles.scss @@ -159,6 +159,10 @@ time, mark, audio, video { width: 100%; } +.full-height { + height: 100%; +} + .centered { margin-left: auto; margin-right: auto;