diff --git a/src/components/RequestListItem.vue b/src/components/RequestListItem.vue index 6a3140c..dcb4d4d 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 cad4c9c..a8772f4 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 { diff --git a/src/utils/status.ts b/src/utils/status.ts index bc4d900..2bfdfc7 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: