Skip to content

Commit 12f7985

Browse files
t3dotggclaude
andcommitted
fix(web): effort word keeps a word space in the compact composer
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b356988 commit 12f7985

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/web/src/components/chat/ComposerModelEffort.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ export function describeComposerEffort(
111111
return {
112112
detail: display.label,
113113
suffix: (
114-
<span className="-ms-0.5 flex shrink-0 items-center gap-1.5 text-muted-foreground group-hover/model-trigger:text-foreground group-data-pressed/model-trigger:text-foreground group-data-popup-open/model-trigger:text-foreground">
114+
<span
115+
className={cn(
116+
"flex shrink-0 items-center gap-1.5 text-muted-foreground group-hover/model-trigger:text-foreground group-data-pressed/model-trigger:text-foreground group-data-popup-open/model-trigger:text-foreground",
117+
// A word space after the model name: the regular trigger's gap is wider than one.
118+
size === "sm" && "-ms-0.5",
119+
)}
120+
>
115121
{word !== null ? (
116122
<span data-composer-control-label>{word}</span>
117123
) : glyph ? (

0 commit comments

Comments
 (0)