Skip to content

Commit 2ba3475

Browse files
Fix UI Overflow Issue for Long Organization Names (#18816)
* fix: Resolve long org name UI overflow * Apply suggestions from code review Co-authored-by: George Tsiolis <[email protected]> --------- Co-authored-by: George Tsiolis <[email protected]>
1 parent e393546 commit 2ba3475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/dashboard/src/menu/OrganizationSelector.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default function OrganizationSelector() {
152152
return (
153153
<ContextMenu customClasses="w-64 left-0" menuEntries={entries}>
154154
<div className={`${classes} rounded-2xl pl-1`}>
155-
<div className="py-1 pr-1 flex font-medium whitespace-nowrap max-w-xs overflow-hidden">
155+
<div className="py-1 pr-1 flex font-medium max-w-xs">
156156
<OrgIcon
157157
id={currentOrg?.data?.id || user?.id || "empty"}
158158
name={selectedTitle}
@@ -196,7 +196,7 @@ export const OrgEntry: FunctionComponent<OrgEntryProps> = ({ id, title, subtitle
196196
<div className="w-full text-gray-400 flex items-center">
197197
<OrgIcon id={id} name={title} className="mr-4" size={iconSize} />
198198
<div className="flex flex-col">
199-
<span className="text-gray-800 dark:text-gray-300 text-base font-semibold">{title}</span>
199+
<span className="text-gray-800 dark:text-gray-300 text-base font-semibold truncate w-40">{title}</span>
200200
<span>{subtitle}</span>
201201
</div>
202202
</div>
@@ -211,7 +211,7 @@ const CurrentOrgEntry: FunctionComponent<CurrentOrgEntryProps> = ({ title, subti
211211
return (
212212
<div className="w-full text-gray-400 flex items-center justify-between">
213213
<div className="flex flex-col">
214-
<span className="text-gray-800 dark:text-gray-300 text-base font-semibold">{title}</span>
214+
<span className="text-gray-800 dark:text-gray-300 text-base font-semibold truncate w-40">{title}</span>
215215
<span>{subtitle}</span>
216216
</div>
217217

0 commit comments

Comments
 (0)