From 067d154b60df2e024ff65ea21125e6b259436d61 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 15 Jul 2024 09:07:32 -0400 Subject: [PATCH] fix: overflow ellipsis (#1375) --- src/components/NotificationRow.tsx | 4 +- src/components/RepositoryNotifications.tsx | 2 +- .../AccountNotifications.test.tsx.snap | 32 +++++++++---- .../NotificationRow.test.tsx.snap | 48 ++++++++++++++----- .../RepositoryNotifications.test.tsx.snap | 14 +++--- 5 files changed, 70 insertions(+), 30 deletions(-) diff --git a/src/components/NotificationRow.tsx b/src/components/NotificationRow.tsx index 11f6749e5..9d802f0fd 100644 --- a/src/components/NotificationRow.tsx +++ b/src/components/NotificationRow.tsx @@ -101,7 +101,7 @@ export const NotificationRow: FC = ({
handleNotification()} > @@ -111,7 +111,7 @@ export const NotificationRow: FC = ({ role="main" title={notificationTitle} > - {notification.subject.title} + {notification.subject.title} = ({ >
diff --git a/src/components/__snapshots__/AccountNotifications.test.tsx.snap b/src/components/__snapshots__/AccountNotifications.test.tsx.snap index 6a5364c54..a466615a7 100644 --- a/src/components/__snapshots__/AccountNotifications.test.tsx.snap +++ b/src/components/__snapshots__/AccountNotifications.test.tsx.snap @@ -96,7 +96,7 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi
- I am a robot and this is a test! + + I am a robot and this is a test! + @@ -295,7 +299,7 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi
- Improve the UI + + Improve the UI + @@ -520,7 +528,7 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi
- I am a robot and this is a test! + + I am a robot and this is a test! + @@ -719,7 +731,7 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi
- Improve the UI + + Improve the UI + diff --git a/src/components/__snapshots__/NotificationRow.test.tsx.snap b/src/components/__snapshots__/NotificationRow.test.tsx.snap index e51ae8235..83c13cb35 100644 --- a/src/components/__snapshots__/NotificationRow.test.tsx.snap +++ b/src/components/__snapshots__/NotificationRow.test.tsx.snap @@ -33,7 +33,7 @@ exports[`components/NotificationRow.tsx should render itself & its children - gr
- I am a robot and this is a test! + + I am a robot and this is a test! + @@ -235,7 +239,7 @@ exports[`components/NotificationRow.tsx should render itself & its children - gr
- I am a robot and this is a test! + + I am a robot and this is a test! + @@ -494,14 +502,18 @@ exports[`components/NotificationRow.tsx should render itself & its children - gr
- I am a robot and this is a test! + + I am a robot and this is a test! + @@ -679,14 +691,18 @@ exports[`components/NotificationRow.tsx should render itself & its children - gr
- I am a robot and this is a test! + + I am a robot and this is a test! + @@ -921,14 +937,18 @@ exports[`components/NotificationRow.tsx should render itself & its children - hi
- I am a robot and this is a test! + + I am a robot and this is a test! +
- I am a robot and this is a test! + + I am a robot and this is a test! +