From a9b34ea820919ffca7de4aeb7c23be2cace786c1 Mon Sep 17 00:00:00 2001 From: Ben Davis <45952064+bmdavis419@users.noreply.github.com> Date: Mon, 27 Jul 2026 15:38:28 -0700 Subject: [PATCH] fix: Home model chip matches the Button trigger's weight and border inset Two residual diffs vs the interactive picker's size="sm" Button surfaced by comparing rendered markup: the label weight (Button renders font-medium) and the 1px transparent border that insets the Button's content. The static chip now carries both; the only remaining difference is the chevron Home deliberately drops. Co-Authored-By: Claude Fable 5 --- apps/web/src/components/chat/ProviderModelPicker.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/chat/ProviderModelPicker.tsx b/apps/web/src/components/chat/ProviderModelPicker.tsx index f943677c68..ad8329acb4 100644 --- a/apps/web/src/components/chat/ProviderModelPicker.tsx +++ b/apps/web/src/components/chat/ProviderModelPicker.tsx @@ -174,10 +174,12 @@ export const ProviderModelPicker = memo(function ProviderModelPicker(props: { data-chat-provider-model-picker="true" data-static="true" className={cn( - // 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", + // Mirrors the interactive trigger's size="sm" Button metrics — + // height (h-8 sm:h-7), type (text-base sm:text-sm, font-medium) and + // the 1px transparent border that insets the Button's content — so + // a Home thread's chip is pixel-identical to every other thread's, + // minus only the chevron it deliberately drops. + "flex h-8 min-w-0 items-center whitespace-nowrap rounded-lg border border-transparent px-2 font-medium 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, )}