mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-26 12:35:35 +02:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user