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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
studio: dim selected Library cards, slightly tighter card corners (#13518)
Michael Hanedde7993dcf9
diff --git a/studio/frontend/src/features/library/chats/chats-items.tsx b/studio/frontend/src/features/library/chats/chats-items.tsxindex c20114ddad5..c33e79cec82 100644--- a/studio/frontend/src/features/library/chats/chats-items.tsx+++ b/studio/frontend/src/features/library/chats/chats-items.tsx@@ -81,7 +81,7 @@ import { CARD_SHADOW, OVERLAY_CONTROL, RAISED_SURFACE } from "../surface";const CARD = cn(RAISED_SURFACE,CARD_SHADOW,- "group/chat relative flex aspect-[8/7] cursor-pointer flex-col gap-2.5 self-stretch rounded-xl px-5 pb-3.5 pt-5 transition hover:bg-neutral-100 hover:shadow-none dark:hover:bg-accent/60",+ "group/chat relative flex aspect-[8/7] cursor-pointer flex-col gap-2.5 self-stretch rounded-[calc(var(--radius-xl)-2px)] px-5 pb-3.5 pt-5 transition hover:bg-neutral-100 hover:shadow-none dark:hover:bg-accent/60",);import {type ChatContents,@@ -1784,7 +1784,7 @@ function FavoriteTile({aria-label={title}onClick={onOpen}className={cn(- "block w-full overflow-hidden rounded-xl text-left outline-none transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",+ "block w-full overflow-hidden rounded-[calc(var(--radius-xl)-2px)] text-left outline-none transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",FILE_CARD_SURFACE,)}>diff --git a/studio/frontend/src/features/library/chats/chats-library.tsx b/studio/frontend/src/features/library/chats/chats-library.tsxindex 5f6615a363e..f0bfba96c03 100644--- a/studio/frontend/src/features/library/chats/chats-library.tsx+++ b/studio/frontend/src/features/library/chats/chats-library.tsx@@ -1201,7 +1201,7 @@ export function ChatsLibrary({<buttontype="button"onClick={() => setMovingIntoNew({ kind: "section", chats: [] })}- className="flex aspect-[8/7] flex-col self-stretch items-center justify-center gap-2 rounded-xl border border-dashed border-border text-ui-14 text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground"+ className="flex aspect-[8/7] flex-col self-stretch items-center justify-center gap-2 rounded-[calc(var(--radius-xl)-2px)] border border-dashed border-border text-ui-14 text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground"><HugeiconsIcon icon={PlusSignIcon} strokeWidth={1.5} className="size-6" />{t("shell.sections.newSection")}@@ -1297,7 +1297,7 @@ export function ChatsLibrary({<buttontype="button"onClick={() => setCreatingProject(true)}- className="flex aspect-[8/7] flex-col self-stretch items-center justify-center gap-2 rounded-xl border border-dashed border-border text-ui-14 text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground"+ className="flex aspect-[8/7] flex-col self-stretch items-center justify-center gap-2 rounded-[calc(var(--radius-xl)-2px)] border border-dashed border-border text-ui-14 text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground"><HugeiconsIcon icon={FolderAddIcon} strokeWidth={1.5} className="size-6" />{t("library.chats.toolbar.newProject")}diff --git a/studio/frontend/src/features/library/components/library-cards.tsx b/studio/frontend/src/features/library/components/library-cards.tsxindex 48342bebaec..bd0e98bd1fd 100644--- a/studio/frontend/src/features/library/components/library-cards.tsx+++ b/studio/frontend/src/features/library/components/library-cards.tsx@@ -27,6 +27,7 @@ import {GLASS_SURFACE,OVERLAY_CONTROL,RAISED_SURFACE,+ SELECTED_TINT,} from "../surface";import { CardSelectionContext } from "./card-selection";import { LibraryActionsMenu } from "./library-actions";@@ -151,9 +152,10 @@ function CardFrame({select && selecting ? (event) => select.toggle(selectKey, event.shiftKey) : onOpen}className={cn(- "block w-full overflow-hidden rounded-xl text-left outline-none transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",+ "block w-full overflow-hidden rounded-[calc(var(--radius-xl)-2px)] text-left outline-none transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",selected && "ring-2 ring-foreground",className,+ selected && SELECTED_TINT,)}>{children}@@ -171,6 +173,8 @@ function CardFrame({OVERLAY_CONTROL,"absolute bottom-4 right-4 size-5 rounded-full border-0 opacity-0 transition-opacity group-hover/library-card:opacity-100 focus-visible:opacity-100 data-checked:bg-white data-checked:text-foreground dark:data-checked:bg-neutral-200 dark:data-checked:text-neutral-900 [&_svg]:size-3.5",glass && GLASS_CONTROL,+ // The hover outline is lost on a dimmed selected card, so a checked one draws it darker.+ glass && "data-checked:ring-neutral-300",selected && "opacity-100",)}/>diff --git a/studio/frontend/src/features/library/library-page.tsx b/studio/frontend/src/features/library/library-page.tsxindex d7bb0c5a711..66cdd2e50b7 100644--- a/studio/frontend/src/features/library/library-page.tsx+++ b/studio/frontend/src/features/library/library-page.tsx@@ -180,7 +180,7 @@ function LoadingGrid() {return (<div className="mt-6 grid grid-cols-2 gap-5 sm:grid-cols-3 lg:grid-cols-5">{Array.from({ length: 10 }, (_, index) => (- <Skeleton key={index} className="aspect-square rounded-xl" />+ <Skeleton key={index} className="aspect-square rounded-[calc(var(--radius-xl)-2px)]" />))}</div>);diff --git a/studio/frontend/src/features/library/surface.ts b/studio/frontend/src/features/library/surface.tsindex d700d393718..3aaf6bac539 100644--- a/studio/frontend/src/features/library/surface.ts+++ b/studio/frontend/src/features/library/surface.ts@@ -7,13 +7,16 @@ export const RAISED_SURFACE =export const CARD_SHADOW ="shadow-[0_1px_2px_rgba(0,0,0,0.04),0_4px_16px_rgba(0,0,0,0.06)] dark:shadow-none";+// A selected card dims as a whole, picture included: the ring alone vanished against white previews.+export const SELECTED_TINT =+ "relative after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:bg-[rgb(0_0_0_/_calc(0.08*var(--contrast-wash-gain,1)))] dark:after:bg-[rgb(0_0_0_/_calc(0.18*var(--contrast-wash-gain,1)))]";+export const OVERLAY_CONTROL ="bg-white shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:bg-neutral-700 dark:shadow-none";-// 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.+// Preview cards only: outlined (white on white vanished), solid (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";+ "shadow-[0_2px_10px_-2px_rgba(0,0,0,0.24)] ring-1 ring-neutral-100 dark:shadow-none";export const GLASS_SURFACE = `bg-white text-neutral-900 ${CONTROL_EDGE} dark:bg-neutral-700 dark:text-white dark:ring-0`;