Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Fix sidebar settings dropdown overflow with long user names (#5572)

Peter Chinmanc58f5754b263
diff --git a/apps/web/src/components/app/app-sidebar/sidebar.tsx b/apps/web/src/components/app/app-sidebar/sidebar.tsx
index 42ba8bfe0b..5518bd3ac3 100644
--- a/apps/web/src/components/app/app-sidebar/sidebar.tsx
+++ b/apps/web/src/components/app/app-sidebar/sidebar.tsx
@@ -877,7 +877,11 @@ const SidebarSettingsWidget = (props: SidebarSettingsWidgetProps) => {
</span>
<CaretUpIcon class="size-3 text-ink-extra-muted shrink-0 group-data-[slim=true]/sidebar:hidden" />
</Dropdown.Trigger>
- <Dropdown.Content class="min-w-64 shadow-menu">
+ {/*
+ The menu is shrink-to-fit, so without a cap a long name or email
+ stretches it instead of engaging the `truncate` below.
+ */}
+ <Dropdown.Content class="min-w-[min(16rem,calc(100vw-1rem))] max-w-[min(20rem,calc(100vw-1rem))] shadow-menu">
<Dropdown.Group class="p-1.5 gap-0">
<div class="flex items-center gap-3 px-1 py-1">
<Show