Skip to content

Commit 501091b

Browse files
committed
fix(chat): align composer model and effort controls
1 parent 18d803a commit 501091b

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
@@ -637,18 +637,23 @@ const UserInputImpl = forwardRef<UserInputHandle, UserInputProps>(function UserI
637637
<Button
638638
type='button'
639639
variant='ghost'
640-
className='gap-1.5'
640+
className='h-[28px] gap-1.5 text-sm leading-5'
641641
aria-label='Model and reasoning effort'
642642
>
643-
{modelSelection.fastMode && <Zap className='size-[14px]' />}
644-
{
645-
MOTHERSHIP_MODEL_OPTIONS.find((option) => option.value === modelSelection.model)
646-
?.label
647-
}
648-
<span className='text-[var(--text-muted)]'>
649-
{MOTHERSHIP_EFFORT_OPTIONS.find((option) => option.value === effort)?.label}
643+
{modelSelection.fastMode && <Zap className='size-[16px] shrink-0' />}
644+
<span className='inline-flex items-baseline gap-1'>
645+
<span>
646+
{
647+
MOTHERSHIP_MODEL_OPTIONS.find(
648+
(option) => option.value === modelSelection.model
649+
)?.label
650+
}
651+
</span>
652+
<span className='text-[var(--text-muted)]'>
653+
{MOTHERSHIP_EFFORT_OPTIONS.find((option) => option.value === effort)?.label}
654+
</span>
650655
</span>
651-
<ChevronDown className='size-[14px]' />
656+
<ChevronDown className='size-[16px] shrink-0' />
652657
</Button>
653658
</PopoverTrigger>
654659
<PopoverContent side='top' align='start' minWidth={280} maxWidth={280}>
@@ -672,6 +677,7 @@ const UserInputImpl = forwardRef<UserInputHandle, UserInputProps>(function UserI
672677
<Button
673678
type='button'
674679
variant={modelSelection.fastMode ? 'active' : 'ghost'}
680+
className='size-[30px] shrink-0 p-0'
675681
aria-label='Fast mode'
676682
aria-pressed={modelSelection.fastMode}
677683
onClick={() => setFastMode(!modelSelection.fastMode)}

0 commit comments

Comments
 (0)