Skip to content

Commit 4e29240

Browse files
committed
fix(chat): align composer model and effort controls
1 parent 9be4580 commit 4e29240

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home/components/user-input

apps/sim/app/workspace/[workspaceId]/home/components/user-input/user-input.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -764,18 +764,23 @@ const UserInputImpl = forwardRef<UserInputHandle, UserInputProps>(function UserI
764764
<Button
765765
type='button'
766766
variant='ghost'
767-
className='gap-1.5'
767+
className='h-[28px] gap-1.5 text-sm leading-5'
768768
aria-label='Model and reasoning effort'
769769
>
770-
{modelSelection.fastMode && <Zap className='size-[14px]' />}
771-
{
772-
MOTHERSHIP_MODEL_OPTIONS.find((option) => option.value === modelSelection.model)
773-
?.label
774-
}
775-
<span className='text-[var(--text-muted)]'>
776-
{MOTHERSHIP_EFFORT_OPTIONS.find((option) => option.value === effort)?.label}
770+
{modelSelection.fastMode && <Zap className='size-[16px] shrink-0' />}
771+
<span className='inline-flex items-baseline gap-1'>
772+
<span>
773+
{
774+
MOTHERSHIP_MODEL_OPTIONS.find(
775+
(option) => option.value === modelSelection.model
776+
)?.label
777+
}
778+
</span>
779+
<span className='text-[var(--text-muted)]'>
780+
{MOTHERSHIP_EFFORT_OPTIONS.find((option) => option.value === effort)?.label}
781+
</span>
777782
</span>
778-
<ChevronDown className='size-[14px]' />
783+
<ChevronDown className='size-[16px] shrink-0' />
779784
</Button>
780785
</PopoverTrigger>
781786
<PopoverContent side='top' align='start' minWidth={280} maxWidth={280}>
@@ -799,6 +804,7 @@ const UserInputImpl = forwardRef<UserInputHandle, UserInputProps>(function UserI
799804
<Button
800805
type='button'
801806
variant={modelSelection.fastMode ? 'active' : 'ghost'}
807+
className='size-[30px] shrink-0 p-0'
802808
aria-label='Fast mode'
803809
aria-pressed={modelSelection.fastMode}
804810
onClick={() => setFastMode(!modelSelection.fastMode)}

0 commit comments

Comments
 (0)