Skip to content

Commit cecc422

Browse files
committed
🤖 Refine chat controls spacing and visibility
- Standardize all internal gaps to gap-1.5 for consistency - Remove 'Context' suffix from 1M checkbox (now just '1M') - Make mode toggles hide more aggressively (550px instead of 700px) to prevent wrapping instead of using arbitrary breakpoint
1 parent f37fa6f commit cecc422

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/ChatInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({
749749
)}
750750
<div className="flex flex-wrap items-center gap-x-3 gap-y-2">
751751
{/* Model Selector - always visible */}
752-
<div className="flex items-center" data-component="ModelSelectorGroup">
752+
<div className="flex items-center gap-1.5" data-component="ModelSelectorGroup">
753753
<ModelSelector
754754
ref={modelSelectorRef}
755755
value={preferredModel}
@@ -789,7 +789,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({
789789
<div className="max-@[500px]:hidden flex items-center" data-component="Context1MGroup">
790790
<Context1MCheckbox modelString={preferredModel} />
791791
</div>
792-
<div className="max-@[700px]:hidden ml-auto flex items-center gap-1.5">
792+
<div className="max-@[550px]:hidden ml-auto flex items-center gap-1.5">
793793
<div
794794
className={cn(
795795
"flex gap-0 bg-toggle-bg rounded",

src/components/Context1MCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const Context1MCheckbox: React.FC<Context1MCheckboxProps> = ({ modelStrin
1919
<div className="flex items-center gap-1.5">
2020
<label className="text-foreground flex cursor-pointer items-center gap-1 truncate text-[10px] select-none hover:text-white">
2121
<input type="checkbox" checked={use1M} onChange={(e) => setUse1M(e.target.checked)} />
22-
1M Context
22+
1M
2323
</label>
2424
<TooltipWrapper inline>
2525
<span className="text-muted flex cursor-help items-center text-[10px] leading-none">?</span>

src/components/ThinkingSlider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const ThinkingSliderComponent: React.FC<ThinkingControlProps> = ({ modelS
9595

9696
return (
9797
<TooltipWrapper>
98-
<div className="flex items-center gap-2">
98+
<div className="flex items-center gap-1.5">
9999
<span
100100
className="min-w-11 uppercase transition-all duration-200 select-none"
101101
style={textStyle}
@@ -126,7 +126,7 @@ export const ThinkingSliderComponent: React.FC<ThinkingControlProps> = ({ modelS
126126

127127
return (
128128
<TooltipWrapper>
129-
<div className="flex items-center gap-2">
129+
<div className="flex items-center gap-1.5">
130130
<input
131131
type="range"
132132
min="0"

0 commit comments

Comments
 (0)