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: Library chat cards keep their column width and equal padding (#14305)

Michael Han22a0beae9825
diff --git a/studio/frontend/src/features/library/chats/chats-items.tsx b/studio/frontend/src/features/library/chats/chats-items.tsx
index 6791b62ec5b..fe03f6c74bc 100644
--- a/studio/frontend/src/features/library/chats/chats-items.tsx
+++ b/studio/frontend/src/features/library/chats/chats-items.tsx
@@ -82,7 +82,8 @@ 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-[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",
+ // min-w-0: a grid item's automatic minimum is its content, so a long project line widened the card past its column.
+ "group/chat relative flex aspect-[8/7] min-w-0 cursor-pointer flex-col gap-2.5 self-stretch rounded-[calc(var(--radius-xl)-2px)] px-5 py-5 transition hover:bg-neutral-100 hover:shadow-none dark:hover:bg-accent/60",
);
import {
type ChatContents,
@@ -1201,7 +1202,7 @@ export function ChatCard({
<ChatBadges chat={chat} marksOnly />
</div>
<ChatMenu chat={chat} archived={archived} variant="card" />
- <SelectBox chat={chat} visible={selecting} className="absolute bottom-3.5 end-4 flex" />
+ <SelectBox chat={chat} visible={selecting} className="absolute bottom-5 end-4 flex" />
<button
type="button"
onClick={(event) => {