From d95635794bde079af09f3aeb180840ca0f2a4779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Schultz=20Madsen?= Date: Wed, 15 Jul 2026 06:21:44 +0200 Subject: [PATCH] feat(planning): standard text size in history modal, open to all users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the extra-small font sizes from the Aktivitetslog timeline — text now inherits the dialog's standard size via the --mat-dialog-supporting-text-size token (verified 14px, equal to the dialog body text). Widen the time column to max-content accordingly. Remove the admin-only gate on the history button; the endpoint was never admin-restricted server-side. Co-Authored-By: Claude Fable 5 --- .../version-history-modal.component.scss | 15 ++++++++------- .../workday-entity-dialog.component.html | 2 -- .../workday-entity-dialog.component.ts | 3 +-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/version-history-modal/version-history-modal.component.scss b/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/version-history-modal/version-history-modal.component.scss index 56b39f1d..134878f8 100644 --- a/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/version-history-modal/version-history-modal.component.scss +++ b/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/version-history-modal/version-history-modal.component.scss @@ -1,3 +1,8 @@ +:host { + // Material sizes dialog text via this token (0.875rem); use the app's standard 1rem instead. + --mat-dialog-supporting-text-size: 1rem; +} + .history-header { display: flex; align-items: flex-start; @@ -17,7 +22,8 @@ .history-intro { margin: 0; - font-size: 0.82rem; + // Sits inside mat-dialog-title, which would cascade the 21px headline size. + font-size: 1rem; font-weight: 400; color: var(--text-tertiary, #6c757d); line-height: 1.35; @@ -25,7 +31,6 @@ .history-hint { margin: 0 0 12px; - font-size: 0.8rem; color: var(--text-tertiary, #6c757d); line-height: 1.4; } @@ -46,7 +51,6 @@ .history-day-heading { margin: 0 0 10px; - font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; @@ -62,7 +66,7 @@ .history-event { display: grid; - grid-template-columns: 3.35rem minmax(0, 1fr); + grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; align-items: start; margin-bottom: 14px; @@ -73,7 +77,6 @@ } .history-time { - font-size: 0.82rem; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-tertiary, #6c757d); @@ -85,7 +88,6 @@ .history-action { margin: 0 0 4px; - font-size: 0.88rem; font-weight: 500; line-height: 1.4; } @@ -97,7 +99,6 @@ .history-actor { margin: 0; - font-size: 0.8rem; font-weight: 400; color: var(--text-tertiary, #6c757d); } diff --git a/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.html b/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.html index 6c7bc911..29fd2df0 100644 --- a/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.html +++ b/eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.html @@ -4,8 +4,6 @@ {{ datePipe.transform(data.planningPrDayModels.date, 'dd.MM.yyyy') }} ({{ data.planningPrDayModels.id }})