Skip to content

Commit a6d1e5e

Browse files
committed
feat: truncate long organization names
1 parent 1734bbf commit a6d1e5e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

site/src/modules/management/OrganizationSidebarView.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,17 @@ const OrganizationsSettingsNavigation: FC<
9797
aria-expanded={isPopoverOpen}
9898
className="w-60 justify-between p-2 h-11"
9999
>
100-
<div className="flex flex-row gap-2 items-center p-2">
100+
<div className="flex flex-row gap-2 items-center p-2 truncate">
101101
{activeOrganization && (
102102
<Avatar
103103
size="sm"
104104
src={activeOrganization.icon}
105105
fallback={activeOrganization.display_name}
106106
/>
107107
)}
108-
{activeOrganization?.display_name || activeOrganization?.name}
108+
<span className="truncate">
109+
{activeOrganization?.display_name || activeOrganization?.name}
110+
</span>
109111
</div>
110112
<ChevronDown />
111113
</Button>
@@ -133,7 +135,9 @@ const OrganizationsSettingsNavigation: FC<
133135
src={organization.icon}
134136
fallback={organization.display_name}
135137
/>
136-
{organization.display_name || organization.name}
138+
<span className="truncate">
139+
{organization?.display_name || organization?.name}
140+
</span>
137141
</CommandItem>
138142
</Link>
139143
))}

site/src/pages/ManagementSettingsPage/CreateOrganizationPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const CreateOrganizationPageView: FC<
100100
</Popover>
101101
</Badges>
102102

103-
<header className="flex flex-col gap-2 items-center">
103+
<header className="flex flex-col items-center">
104104
<h1 className="text-3xl font-semibold m-0">New Organization</h1>
105105
<p className="max-w-md text-sm text-content-secondary text-center">
106106
Organize your deployment into multiple platform teams with unique

0 commit comments

Comments
 (0)