mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
fix(dashboard): upcoming bookings read cleanly, pending as a letter on the icon
The PENDING pill beside a title broke long names over several lines; a small dot on the type icon's corner now carries the status's first letter (A for Ausstehend, P for Pending), with the word as its tooltip and accessible name. The time and the trip or place below the name are soft badges instead of a line strung together with dots. Desktop and phone alike.
This commit is contained in:
@@ -650,10 +650,15 @@
|
||||
.trek-dash .upc-info .t { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
|
||||
.trek-dash .upc-info .t { display: flex; align-items: center; gap: 7px; }
|
||||
/* An unconfirmed booking looked exactly like a confirmed one here (#1934). */
|
||||
.trek-dash .upc-pending { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); }
|
||||
.trek-dash .upc-info .s { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
|
||||
/* A pending booking: its status's first letter on a dot at the type icon's corner, the word as its tooltip. */
|
||||
.trek-dash .upc-pending { position: absolute; top: -5px; inset-inline-start: -5px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; line-height: 1; background: var(--ink); color: var(--surface); box-shadow: 0 0 0 2px var(--surface); }
|
||||
.trek-dash .upc-info .s { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; margin-top: 3px; min-width: 0; }
|
||||
.trek-dash .upc-info .s .upc-chip:first-child { flex-shrink: 0; }
|
||||
.trek-dash .upc-info .s .upc-chip { min-width: 0; }
|
||||
/* The time and the where as soft badges instead of a line strung together with dots. */
|
||||
.trek-dash .upc-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.trek-dash .upc-info .s svg { width: 11px; height: 11px; }
|
||||
.trek-dash .upc-type { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
|
||||
.trek-dash .upc-type { position: relative; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
|
||||
.trek-dash .upc-type.flight { background: oklch(0.95 0.04 230); color: oklch(0.45 0.13 230); }
|
||||
.trek-dash .upc-type.hotel { background: oklch(0.95 0.04 145); color: oklch(0.4 0.12 155); }
|
||||
.trek-dash .upc-type.food { background: oklch(0.95 0.05 60); color: oklch(0.5 0.13 50); }
|
||||
|
||||
Reference in New Issue
Block a user