Skip to content

Commit e251b11

Browse files
committed
🤖 Simplify chat controls to use idiomatic flex
Remove hardcoded margins from ThinkingSlider and Context1MCheckbox, let parent container handle spacing with gap-3. This makes the layout more responsive and easier to reason about. - ThinkingSlider: ml-5 → handled by parent gap - Context1MCheckbox: ml-2 → handled by parent gap - ChatInput: pr-3 on child → gap-3 on parent
1 parent f544ce0 commit e251b11

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
@@ -747,10 +747,10 @@ export const ChatInput: React.FC<ChatInputProps> = ({
747747
Editing message ({formatKeybind(KEYBINDS.CANCEL_EDIT)} to cancel)
748748
</div>
749749
)}
750-
<div className="flex items-center overflow-x-auto overflow-y-hidden">
750+
<div className="flex items-center gap-3 overflow-x-auto overflow-y-hidden">
751751
{/* Model Selector - always visible */}
752752
<div
753-
className="flex shrink-0 items-center gap-1.5 pr-3"
753+
className="flex shrink-0 items-center gap-1.5"
754754
data-component="ModelSelectorGroup"
755755
>
756756
<ModelSelector

src/components/Context1MCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Context1MCheckbox: React.FC<Context1MCheckboxProps> = ({ modelStrin
1616
}
1717

1818
return (
19-
<div className="ml-2 flex items-center gap-1.5">
19+
<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)} />
2222
1M Context

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="ml-5 flex items-center gap-2">
98+
<div className="flex items-center gap-2">
9999
<label className="text-subdued text-[10px] select-none">Thinking:</label>
100100
<span
101101
className="min-w-11 uppercase transition-all duration-200 select-none"
@@ -127,7 +127,7 @@ export const ThinkingSliderComponent: React.FC<ThinkingControlProps> = ({ modelS
127127

128128
return (
129129
<TooltipWrapper>
130-
<div className="ml-5 flex items-center gap-2">
130+
<div className="flex items-center gap-2">
131131
<label htmlFor={sliderId} className="text-subdued text-[10px] select-none">
132132
Thinking:
133133
</label>

0 commit comments

Comments
 (0)