From 53c6ccc768ff28f1e53244c63ba5043a92277cc3 Mon Sep 17 00:00:00 2001 From: Michael Han <107991372+shimmyshimmer@users.noreply.github.com> Date: Wed, 24 Jun 2026 03:46:57 -0700 Subject: [PATCH] Studio: slim the GLM-5.2 thinking menu width (#6631) * Studio: slim the GLM-5.2 thinking menu width The high|max effort menu has short labels, so drop it from min-w-44 to min-w-40 for GLM-5.2 only. Other models keep the wider dropdown. * Studio: keep Preserve thinking menus at full width Only narrow the effort menu when it has no Preserve thinking row. That row is longer than the high|max labels and wraps to two lines at the min-w-40 floor, so gate the skinnier width on no preserve-thinking. --- studio/frontend/src/features/chat/shared-composer.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsx index 912d92003b..a50af46e85 100644 --- a/studio/frontend/src/features/chat/shared-composer.tsx +++ b/studio/frontend/src/features/chat/shared-composer.tsx @@ -612,6 +612,12 @@ export function SharedComposer({ const isEffort = effectiveReasoningStyle === "reasoning_effort" || effectiveReasoningStyle === "enable_thinking_effort"; + // GLM-5.2's effort menu (Off, high, max) has short rows, so it can sit a + // touch skinnier. Skip the narrower floor when a Preserve thinking row is + // present, since that longer label needs the wider width to stay one line. + const narrowEffortMenu = + effectiveReasoningStyle === "enable_thinking_effort" && + !supportsPreserveThinking; const thinkingActiveLook = isEffort ? reasoningLockedOn || (effectiveReasoningVisualEnabled && !reasoningDisabled) : reasoningLockedOn || (effectiveReasoningEnabled && !reasoningDisabled); @@ -1785,7 +1791,10 @@ export function SharedComposer({ {isEffort ? ( <>