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.

Scale the attachment preview text with the UI font size (#12276)

Daniel Han620066670413
diff --git a/studio/frontend/src/components/assistant-ui/attachment-card-preview.tsx b/studio/frontend/src/components/assistant-ui/attachment-card-preview.tsx
index 9f2e0b5541b..5458a222586 100644
--- a/studio/frontend/src/components/assistant-ui/attachment-card-preview.tsx
+++ b/studio/frontend/src/components/assistant-ui/attachment-card-preview.tsx
@@ -131,7 +131,7 @@ export const AttachmentCardPreview: FC<{
);
} else if (text !== null) {
body = (
- <pre className="whitespace-pre-wrap break-words px-6 py-5 font-mono text-[13px] leading-snug text-foreground">
+ <pre className="whitespace-pre-wrap break-words px-6 py-5 font-mono text-ui-13 leading-snug text-foreground">
{text.text}
</pre>
);