fix: Home composer chip sits at the normal thread's footer height
The static model label hard-coded h-8/text-sm while the interactive picker it replaces is a size="sm" Button (h-8 sm:h-7, text-base sm:text-sm), so a Home thread's composer footer ran one notch taller than every other thread's at desktop widths. The static chip now mirrors the Button metrics exactly — normal-thread styles are the reference, Home conforms to them. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
8915a449ec
commit
285b05eeba
1 file changed
+4
-1
@@ -174,7 +174,10 @@ export const ProviderModelPicker = memo(function ProviderModelPicker(props: {
|
||||
data-chat-provider-model-picker="true"
|
||||
data-static="true"
|
||||
className={cn(
|
||||
"flex h-8 min-w-0 items-center whitespace-nowrap px-2 text-sm text-muted-foreground/70",
|
||||
// Mirrors the interactive trigger's size="sm" Button metrics
|
||||
// (h-8 sm:h-7, text-base sm:text-sm) so a Home thread's composer
|
||||
// footer sits at exactly the same height as every other thread's.
|
||||
"flex h-8 min-w-0 items-center whitespace-nowrap px-2 text-base text-muted-foreground/70 sm:h-7 sm:text-sm",
|
||||
props.compact ? "max-w-42 shrink-0" : "max-w-48 shrink sm:max-w-56 sm:px-3",
|
||||
props.triggerClassName,
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user