Skip to content

Commit f582f00

Browse files
authored
refactor: subtle ui tweaks (#1295)
1 parent ff14c62 commit f582f00

File tree

6 files changed

+46
-56
lines changed

6 files changed

+46
-56
lines changed

src/components/AccountNotifications.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const AccountNotifications: FC<IAccountNotifications> = (
6868
{showAccountHostname && (
6969
<div
7070
className={cn(
71-
'group flex items-center justify-between px-3 py-2 text-sm font-semibold',
71+
'group flex items-center justify-between px-3 py-1.5 text-sm font-semibold',
7272
'bg-gray-300 dark:bg-gray-darkest dark:text-white',
7373
Opacity.LOW,
7474
)}
@@ -84,7 +84,6 @@ export const AccountNotifications: FC<IAccountNotifications> = (
8484
event.stopPropagation();
8585
openAccountProfile(account);
8686
}}
87-
className="opacity-80"
8887
>
8988
@{account.user.login}
9089
</button>

src/components/NotificationRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const NotificationRow: FC<INotificationRow> = ({
140140
{groupByDate && (
141141
<div
142142
className={cn(
143-
'mb-1 flex items-center gap-1 text-xs',
143+
'mb-1 flex items-center gap-1 text-xs font-medium',
144144
Opacity.MEDIUM,
145145
)}
146146
title={repoSlug}

src/components/RepositoryNotifications.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
6262
return (
6363
<>
6464
<div
65-
className="group flex items-center justify-between bg-gray-100 px-3 py-2 dark:bg-gray-darker dark:text-white"
65+
className="group flex justify-between bg-gray-100 px-3 py-1.5 dark:bg-gray-darker dark:text-white"
6666
onClick={toggleRepositoryNotifications}
6767
>
6868
<div
6969
className={cn(
70-
'flex flex-1 space-x-3 overflow-hidden overflow-ellipsis whitespace-nowrap text-sm font-medium',
70+
'flex flex-1 gap-4 items-center overflow-hidden overflow-ellipsis whitespace-nowrap text-sm font-medium',
7171
Opacity.MEDIUM,
7272
)}
7373
>
7474
<AvatarIcon
7575
title={repoName}
7676
url={avatarUrl}
77-
size={Size.LARGE}
77+
size={Size.XSMALL}
7878
defaultIcon={MarkGithubIcon}
7979
/>
8080
<span

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

Lines changed: 13 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)