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 composer action pill styling (#5522)

Lee Jackson0a6072948617
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx
index c8fea9c7049..e4e203ce6cf 100644
--- a/studio/frontend/src/components/assistant-ui/thread.tsx
+++ b/studio/frontend/src/components/assistant-ui/thread.tsx
@@ -558,12 +558,12 @@ const ReasoningToggle: FC = () => {
type="button"
disabled={disabled}
className={cn(
- "flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-colors",
+ "flex items-center gap-1.5 rounded-full px-1.5 py-1.5 text-[13px] font-medium text-muted-foreground/70 transition-colors",
disabled
? "cursor-not-allowed opacity-40"
: effectiveReasoningVisualEnabled
- ? "bg-primary/10 text-primary hover:bg-primary/20"
- : "text-muted-foreground hover:bg-muted-foreground/15",
+ ? "text-primary hover:bg-primary/10 dark:hover:bg-white/[0.08]"
+ : "hover:bg-primary/10 dark:hover:bg-white/[0.08]",
)}
aria-label={`Reasoning effort: ${reasoningEffort}`}
>
@@ -676,12 +676,12 @@ const PreserveThinkingToggle: FC = () => {
disabled={disabled}
onClick={() => setPreserveThinking(!preserveThinking)}
className={cn(
- "flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-colors",
+ "flex items-center gap-1.5 rounded-full px-1.5 py-1.5 text-[13px] font-medium text-muted-foreground/70 transition-colors",
disabled
? "cursor-not-allowed opacity-40"
: preserveThinking
- ? "bg-primary/10 text-primary hover:bg-primary/20"
- : "bg-muted text-muted-foreground hover:bg-muted-foreground/15",
+ ? "text-primary hover:bg-primary/10 dark:hover:bg-white/[0.08]"
+ : "hover:bg-primary/10 dark:hover:bg-white/[0.08]",
)}
aria-label={
preserveThinking ? "Disable preserve think" : "Enable preserve think"
@@ -848,7 +848,7 @@ const ComposerAction: FC<{ disabled?: boolean; blockSend?: () => boolean }> = ({
}) => {
return (
<div className="aui-composer-action-wrapper composer-action-wrapper">
- <div className="flex items-center gap-1">
+ <div className="flex items-center gap-0.5">
<ComposerAddAttachment />
<ComposerAudioUpload />
<ReasoningToggle />
diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsx
index cd31d37cd78..e255c1c2b01 100644
--- a/studio/frontend/src/features/chat/shared-composer.tsx
+++ b/studio/frontend/src/features/chat/shared-composer.tsx
@@ -695,7 +695,7 @@ export function SharedComposer({
dir="auto"
/>
<div className="composer-action-wrapper">
- <div className="flex items-center gap-1">
+ <div className="flex items-center gap-0.5">
<input
ref={fileInputRef}
type="file"
@@ -751,12 +751,12 @@ export function SharedComposer({
type="button"
disabled={reasoningDisabled}
className={cn(
- "flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-colors",
+ "flex items-center gap-1.5 rounded-full px-1.5 py-1.5 text-[13px] font-medium text-muted-foreground/70 transition-colors",
reasoningDisabled
? "cursor-not-allowed opacity-40"
: effectiveReasoningVisualEnabled
- ? "bg-primary/10 text-primary hover:bg-primary/20"
- : "text-muted-foreground hover:bg-muted-foreground/15",
+ ? "text-primary hover:bg-primary/10 dark:hover:bg-white/[0.08]"
+ : "hover:bg-primary/10 dark:hover:bg-white/[0.08]",
)}
aria-label={`Reasoning effort: ${reasoningEffort}`}
>
@@ -841,14 +841,14 @@ export function SharedComposer({
}
}}
className={cn(
- "flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-colors",
+ "flex items-center gap-1.5 rounded-full px-1.5 py-1.5 text-[13px] font-medium text-muted-foreground/70 transition-colors",
reasoningLockedOn
- ? "cursor-not-allowed bg-primary/10 text-primary"
+ ? "cursor-not-allowed text-primary"
: reasoningDisabled
? "cursor-not-allowed opacity-40"
: effectiveReasoningEnabled
- ? "bg-primary/10 text-primary hover:bg-primary/20"
- : "bg-muted text-muted-foreground hover:bg-muted-foreground/15",
+ ? "text-primary hover:bg-primary/10 dark:hover:bg-white/[0.08]"
+ : "hover:bg-primary/10 dark:hover:bg-white/[0.08]",
)}
aria-label={
reasoningLockedOn
@@ -874,12 +874,12 @@ export function SharedComposer({
disabled={!modelLoaded}
onClick={() => setPreserveThinking(!preserveThinking)}
className={cn(
- "flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-colors",
+ "flex items-center gap-1.5 rounded-full px-1.5 py-1.5 text-[13px] font-medium text-muted-foreground/70 transition-colors",
!modelLoaded
? "cursor-not-allowed opacity-40"
: preserveThinking
- ? "bg-primary/10 text-primary hover:bg-primary/20"
- : "bg-muted text-muted-foreground hover:bg-muted-foreground/15",
+ ? "text-primary hover:bg-primary/10 dark:hover:bg-white/[0.08]"
+ : "hover:bg-primary/10 dark:hover:bg-white/[0.08]",
)}
aria-label={
preserveThinking ? "Disable preserve think" : "Enable preserve think"
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index cdfa986a12e..dd01b797cec 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -799,7 +799,7 @@
}
.composer-pill-btn {
- @apply flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[13px] font-medium text-muted-foreground/70 transition-colors hover:bg-primary/10 dark:hover:bg-white/[0.08] disabled:cursor-not-allowed disabled:opacity-40;
+ @apply flex items-center gap-1.5 rounded-full px-1.5 py-1.5 text-[13px] font-medium text-muted-foreground/70 transition-colors hover:bg-primary/10 dark:hover:bg-white/[0.08] disabled:cursor-not-allowed disabled:opacity-40;
}
.composer-pill-btn[data-active="true"] {
color: var(--primary);