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: lift Library grid icons to the card's middle (#12341)

Michael Han73b3502130dd
diff --git a/studio/frontend/src/features/library/chats/chats-items.tsx b/studio/frontend/src/features/library/chats/chats-items.tsx
index ba42c709cf4..f4526ab4fae 100644
--- a/studio/frontend/src/features/library/chats/chats-items.tsx
+++ b/studio/frontend/src/features/library/chats/chats-items.tsx
@@ -1792,7 +1792,7 @@ function FavoriteTile({
<p className="line-clamp-2 min-h-[2.75em] break-words font-medium text-ui-13p5 leading-snug text-foreground">
{title}
</p>
- <div className="flex items-center justify-center text-foreground">
+ <div className="flex flex-col items-center text-foreground before:flex-5 after:flex-7">
{icon}
</div>
<p className="truncate pr-6 text-ui-12 text-muted-foreground">
diff --git a/studio/frontend/src/features/library/components/library-cards.tsx b/studio/frontend/src/features/library/components/library-cards.tsx
index efc10ba528b..29013ab18c3 100644
--- a/studio/frontend/src/features/library/components/library-cards.tsx
+++ b/studio/frontend/src/features/library/components/library-cards.tsx
@@ -205,12 +205,12 @@ export function ItemCard({ item }: { item: LibraryItem }) {
)}
</>
) : (
- // Two-line name slot keeps the icon in one place on every card.
+ // Two-line name slot keeps the icon in one place on every card. A 5:7 space split lifts it without growing small cards.
<div className="grid aspect-square grid-cols-[minmax(0,1fr)] grid-rows-[auto_1fr_auto] px-5 pt-5 pb-3.5">
<p className="line-clamp-2 min-h-[2.75em] break-all font-medium text-ui-13p5 leading-snug text-foreground">
{item.name}
</p>
- <div className="flex items-center justify-center">
+ <div className="flex flex-col items-center before:flex-5 after:flex-7">
<KindIcon item={item} className={cardIconClass(item)} />
</div>
<p className="truncate pr-6 text-ui-12 text-muted-foreground">