Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Truncate org and project name in notifications v2 if too long (#20259)

Joshen Lim5a8864e41189
diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx
index f706044e648..1c3c9d7369a 100644
--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx
@@ -73,11 +73,12 @@ const NotificationRow = ({
>
<div ref={viewRef} className="flex flex-col gap-y-2 w-full">
{(project !== undefined || organization !== undefined) && (
- <div className="flex items-center">
+ <div className="flex items-center max-w-[350px]">
{organization !== undefined && (
<Link
+ title={organization.name}
href={`/org/${organization.slug}/general`}
- className="text-xs transition text-foreground-light hover:text-foreground underline"
+ className="text-xs transition text-foreground-light hover:text-foreground underline truncate"
>
{organization.name}
</Link>
@@ -101,8 +102,9 @@ const NotificationRow = ({
)}
{project !== undefined && (
<Link
+ title={project.name}
href={`/project/${project.ref}`}
- className="text-xs transition text-foreground-light hover:text-foreground underline"
+ className="text-xs transition text-foreground-light hover:text-foreground underline truncate"
>
{project.name}
</Link>