Skip to content

Commit b985843

Browse files
authored
Prevents long project menu titles pushing the admin buttons out of bounds (#2332)
1 parent 9ecda81 commit b985843

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,18 @@ export function SideMenu({
143143
>
144144
<div
145145
className={cn(
146-
"flex items-center justify-between overflow-hidden border-b px-1 py-1 transition duration-300",
146+
"flex items-center overflow-hidden border-b px-1 py-1 transition duration-300",
147147
showHeaderDivider ? "border-grid-bright" : "border-transparent"
148148
)}
149149
>
150-
<ProjectSelector
151-
organizations={organizations}
152-
organization={organization}
153-
project={project}
154-
user={user}
155-
/>
150+
<div className="min-w-0 flex-1">
151+
<ProjectSelector
152+
organizations={organizations}
153+
organization={organization}
154+
project={project}
155+
user={user}
156+
/>
157+
</div>
156158
{isAdmin && !user.isImpersonating ? (
157159
<TooltipProvider disableHoverableContent={true}>
158160
<Tooltip>

0 commit comments

Comments
 (0)