diff --git a/src/apps/officer-web/styles/globals.css b/src/apps/officer-web/styles/globals.css index 8b88f8c0..76726f71 100644 --- a/src/apps/officer-web/styles/globals.css +++ b/src/apps/officer-web/styles/globals.css @@ -1,4 +1,4 @@ -@import "tailwindcss"; +@import 'tailwindcss'; @plugin 'tailwindcss-animate'; @custom-variant dark (&:is(.dark *)); @@ -123,12 +123,12 @@ @layer base { :root { /* Duck brand hex colors */ - --duck-yellow: #F4C430; - --duck-orange: #EA580C; - --duck-teal: #0891B2; + --duck-yellow: #f4c430; + --duck-orange: #ea580c; + --duck-teal: #0891b2; --duck-forest: #166534; - --duck-dark: #14532D; - --duck-beige: #E7D4B5; + --duck-dark: #14532d; + --duck-beige: #e7d4b5; /* Page background */ --pixel-grid-color: rgba(20, 83, 45, 0.1); @@ -328,14 +328,39 @@ background: #555; } -.file-grid:has([data-state="open"]) [data-file-item]:not([data-state="open"]) { +/* Chat — the background-task strip. A default horizontal scrollbar is ~15px tall and is laid out INSIDE + the row, so it stole most of the chips' breathing room and made the tray read as squeezed. Thin, and + neutral enough to sit on either theme. */ +.task-strip { + scrollbar-width: thin; + scrollbar-color: rgb(128 128 128 / 0.3) transparent; +} + +.task-strip::-webkit-scrollbar { + height: 4px; +} + +.task-strip::-webkit-scrollbar-track { + background: transparent; +} + +.task-strip::-webkit-scrollbar-thumb { + background: rgb(128 128 128 / 0.3); + border-radius: 2px; +} + +.task-strip:hover::-webkit-scrollbar-thumb { + background: rgb(128 128 128 / 0.5); +} + +.file-grid:has([data-state='open']) [data-file-item]:not([data-state='open']) { pointer-events: none; } -.file-grid:has([data-state="open"]) [data-file-item]:not([data-state="open"]) .file-item-ellipsis { +.file-grid:has([data-state='open']) [data-file-item]:not([data-state='open']) .file-item-ellipsis { opacity: 0 !important; } -.file-grid [data-file-item][data-state="open"] .file-item-ellipsis { +.file-grid [data-file-item][data-state='open'] .file-item-ellipsis { opacity: 1 !important; } diff --git a/src/workspaces/officerdev/src/apps/Chat/components/BackgroundTaskTray.tsx b/src/workspaces/officerdev/src/apps/Chat/components/BackgroundTaskTray.tsx index e74814eb..8b0ba263 100644 --- a/src/workspaces/officerdev/src/apps/Chat/components/BackgroundTaskTray.tsx +++ b/src/workspaces/officerdev/src/apps/Chat/components/BackgroundTaskTray.tsx @@ -30,11 +30,13 @@ export const BackgroundTaskTray = ({ messages }: BackgroundTaskTrayProps) => {