From dc1ebef25f7699a0d0585951da2bf2870c5bb628 Mon Sep 17 00:00:00 2001 From: Sergey Kozyrenko Date: Fri, 10 Jul 2026 13:10:35 +0700 Subject: [PATCH] fix(file-manager): use OKLCH token directly for the multi-drag badge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The multi-drag "N items" drag image set `hsl(var(--primary))`, but the theme tokens are OKLCH values — `hsl(oklch(...))` is invalid CSS and dropped, leaving a transparent badge with default text. Reference the tokens directly via `var(--primary)` / `var(--primary-foreground)` (theme-aware, valid). Co-Authored-By: Claude Opus 4.8 --- .../components/shared/file-manager/use-file-manager-dnd.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/shared/file-manager/use-file-manager-dnd.ts b/frontend/src/components/shared/file-manager/use-file-manager-dnd.ts index cc7fbe12..f5e13d4b 100644 --- a/frontend/src/components/shared/file-manager/use-file-manager-dnd.ts +++ b/frontend/src/components/shared/file-manager/use-file-manager-dnd.ts @@ -290,8 +290,8 @@ export function useFileManagerDnd({ 'top: -1000px', 'left: -1000px', 'padding: 6px 12px', - 'background: hsl(var(--primary))', - 'color: hsl(var(--primary-foreground))', + 'background: var(--primary)', + 'color: var(--primary-foreground)', 'border-radius: 6px', 'font: 500 13px system-ui, -apple-system, "Segoe UI", sans-serif', 'white-space: nowrap',