Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

studio: stronger light-mode Library card hover, centered time pill (#13509)

Michael Han6fac12fea475
diff --git a/studio/frontend/src/features/library/components/library-cards.tsx b/studio/frontend/src/features/library/components/library-cards.tsx
index 23414bb6d54..48342bebaec 100644
--- a/studio/frontend/src/features/library/components/library-cards.tsx
+++ b/studio/frontend/src/features/library/components/library-cards.tsx
@@ -236,7 +236,7 @@ export function ItemCard({ item }: { item: LibraryItem }) {
<span
className={cn(
GLASS_SURFACE,
- "pointer-events-none absolute bottom-2 left-2 rounded-full px-2 py-0.5 text-ui-12 opacity-0 transition-opacity group-hover/library-card:opacity-100 group-has-[:focus-visible]/library-card:opacity-100 pointer-coarse:opacity-100",
+ "pointer-events-none absolute bottom-2 left-2 inline-flex h-6 items-center rounded-full px-2 text-ui-12 leading-none opacity-0 transition-opacity group-hover/library-card:opacity-100 group-has-[:focus-visible]/library-card:opacity-100 pointer-coarse:opacity-100",
)}
>
{formatCardTime(item.updatedAt, locale)}
diff --git a/studio/frontend/src/features/library/surface.ts b/studio/frontend/src/features/library/surface.ts
index a719ac45e6e..d700d393718 100644
--- a/studio/frontend/src/features/library/surface.ts
+++ b/studio/frontend/src/features/library/surface.ts
@@ -10,7 +10,11 @@ export const CARD_SHADOW =
export const OVERLAY_CONTROL =
"bg-white shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:bg-neutral-700 dark:shadow-none";
-export const GLASS_SURFACE =
- "bg-white/60 text-neutral-900 shadow-none ring-1 ring-white/50 backdrop-blur-md dark:bg-black/40 dark:text-white dark:ring-white/20";
+// Controls over picture previews only: light mode outlines them and deepens the shadow, since
+// white chips vanished on white thumbnails. Solid, not frosted: the blur smeared the picture.
+const CONTROL_EDGE =
+ "shadow-[0_2px_10px_-2px_rgba(0,0,0,0.24)] ring-1 ring-black/[0.035] dark:shadow-none";
-export const GLASS_CONTROL = `${GLASS_SURFACE} hover:bg-white/80 hover:text-neutral-900 dark:hover:bg-black/55 dark:hover:text-white`;
+export const GLASS_SURFACE = `bg-white text-neutral-900 ${CONTROL_EDGE} dark:bg-neutral-700 dark:text-white dark:ring-0`;
+
+export const GLASS_CONTROL = `${GLASS_SURFACE} hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-600 dark:hover:text-white`;