From e9968d05dab58a8a64fd491cced58ab088b0d136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= <14975046+skjnldsv@users.noreply.github.com> Date: Thu, 26 Nov 2026 21:38:41 +0100 Subject: [PATCH 1/2] fix(ui): same status chips, centred in the request rows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each chip had a border tinted from its own status colour: it stood out on the grey chips (Recorded, Cancelled) and vanished on the coloured ones. The chips now only have their tinted background. NcListItem pins its details column to the bottom, so in a row without a waiting time the chip sat lower than in one with it. The column is centred. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com> --- src/components/RequestListItem.vue | 6 ++++++ src/components/StatusChip.vue | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/RequestListItem.vue b/src/components/RequestListItem.vue index 6a3140c0..dcb4d4d0 100644 --- a/src/components/RequestListItem.vue +++ b/src/components/RequestListItem.vue @@ -167,6 +167,12 @@ function select(event?: MouseEvent) { background: var(--color-background-hover); } + // The list item pins its details column to the bottom: the chips sat lower in + // a row without a waiting time than in one with it. + :deep(.list-item-content__details) { + justify-content: center; + } + // Round the list item so the stripe + hover background clip nicely. :deep(.list-item), :deep(.list-item__wrapper) { diff --git a/src/components/StatusChip.vue b/src/components/StatusChip.vue index cad4c9cd..a8772f4f 100644 --- a/src/components/StatusChip.vue +++ b/src/components/StatusChip.vue @@ -32,10 +32,11 @@ const meta = computed(() => statusMeta(props.status)) font-size: var(--font-size-small); font-weight: 600; // Contrast-optimised text on a solid tinted background (not transparent), so - // readability doesn't depend on whatever surface sits behind the chip. + // readability doesn't depend on whatever surface sits behind the chip. No + // border: tinted from each status colour, it stood out on the grey chips and + // vanished on the coloured ones. color: var(--chip-text); background: color-mix(in srgb, var(--chip-tint) 18%, var(--color-main-background)); - border: 1px solid color-mix(in srgb, var(--chip-tint) 35%, transparent); white-space: nowrap; &__dot { From 83a946d19b8589b1d2d7f134491a53f9c371338e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= <14975046+skjnldsv@users.noreply.github.com> Date: Thu, 26 Nov 2026 22:11:31 +0100 Subject: [PATCH 2/2] fix(ui): recorded leave in the info colour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without its border, the grey Recorded chip looked disabled: muted text on a muted background. Recorded leave is final, like approved leave, so it gets the info colour. Cancelled keeps the muted look. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com> --- src/utils/status.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/status.ts b/src/utils/status.ts index bc4d9004..2bfdfc73 100644 --- a/src/utils/status.ts +++ b/src/utils/status.ts @@ -34,7 +34,7 @@ export function statusMeta(status: ChipStatus | string): StatusMeta { case 'CANCELLED': return { label: t('absence', 'Cancelled'), text: 'var(--color-text-maxcontrast)', tint: 'var(--color-text-maxcontrast)', icon: '🚫' } case 'RECORDED': - return { label: t('absence', 'Recorded'), text: 'var(--color-text-maxcontrast)', tint: 'var(--color-text-maxcontrast)', icon: '🗂️' } + return { label: t('absence', 'Recorded'), text: 'var(--color-info-text, var(--color-main-text))', tint: 'var(--color-info, var(--color-primary-element))', icon: '🗂️' } case 'WITHDRAWAL_PENDING': return { label: t('absence', 'Withdrawal pending'), text: 'var(--color-warning-text)', tint: 'var(--color-warning)', icon: '↩️' } default: