From 285b05eeba1838bdc65821334410833a91d286cf Mon Sep 17 00:00:00 2001 From: Ben Davis <45952064+bmdavis419@users.noreply.github.com> Date: Mon, 27 Jul 2026 15:02:54 -0700 Subject: [PATCH] fix: Home composer chip sits at the normal thread's footer height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apps/web/src/components/chat/ProviderModelPicker.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/chat/ProviderModelPicker.tsx b/apps/web/src/components/chat/ProviderModelPicker.tsx index 4db096decb..f943677c68 100644 --- a/apps/web/src/components/chat/ProviderModelPicker.tsx +++ b/apps/web/src/components/chat/ProviderModelPicker.tsx @@ -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, )}