Skip to content

Commit 11d45f7

Browse files
setchyadufr
authored andcommitted
feat: add title to notification heading (gitify-app#897)
1 parent 825476c commit 11d45f7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/NotificationRow.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ export const NotificationRow: React.FC<IProps> = ({
8080
onClick={() => pressTitle()}
8181
role="main"
8282
>
83-
<div className="mb-1 text-sm whitespace-nowrap overflow-ellipsis overflow-hidden">
83+
<div
84+
className="mb-1 text-sm whitespace-nowrap overflow-ellipsis overflow-hidden"
85+
title={notification.subject.title}
86+
>
8487
{notification.subject.title}
8588
</div>
8689

src/components/__snapshots__/NotificationRow.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ exports[`components/Notification.js should render itself & its children 1`] = `
4242
>
4343
<div
4444
className="mb-1 text-sm whitespace-nowrap overflow-ellipsis overflow-hidden"
45+
title="I am a robot and this is a test!"
4546
>
4647
I am a robot and this is a test!
4748
</div>

0 commit comments

Comments
 (0)