fix(views): stop server version from stretching the help menu (#5472)

Cap the Help menu width (max-w-56) and let the server version label
wrap (break-words) so a long version string no longer widens the whole
popup. The menu still keeps its min-w-40 floor when no version is shown.

MUL-4828

Co-authored-by: Bohan-J <bohan@devv.ai>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
Bohan Jiang
2026-07-15 18:41:16 +08:00
committed by GitHub
parent fff23c1fc3
commit fa17e5c168

View File

@@ -34,7 +34,7 @@ export function HelpLauncher() {
align="end"
side="top"
sideOffset={8}
className="min-w-40"
className="min-w-40 max-w-56"
>
<DropdownMenuItem
render={
@@ -82,7 +82,7 @@ export function HelpLauncher() {
Help menu crashes the whole app on open (no error boundary sits
above the sidebar). */}
<DropdownMenuGroup>
<DropdownMenuLabel className="font-normal">
<DropdownMenuLabel className="font-normal break-words">
{t(($) => $.help.server_version, { version: serverVersion })}
</DropdownMenuLabel>
</DropdownMenuGroup>