Skip to content

Commit 4671b87

Browse files
authored
feat: stable scrollbars (#1603)
Signed-off-by: Adam Setch <[email protected]>
1 parent 301f5a7 commit 4671b87

File tree

7 files changed

+32
-31
lines changed

7 files changed

+32
-31
lines changed

src/renderer/App.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ body,
33
#root {
44
height: 100%;
55
-webkit-user-select: none;
6+
scrollbar-gutter: stable;
67
}
78

89
html::-webkit-scrollbar,

src/renderer/components/AccountNotifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const AccountNotifications: FC<IAccountNotifications> = (
7474
{showAccountHeader && (
7575
<div
7676
className={cn(
77-
'group flex items-center justify-between px-3 py-1.5 text-sm font-semibold dark:text-white',
77+
'group flex items-center justify-between pl-3 pr-4 py-1.5 text-sm font-semibold dark:text-white',
7878
props.error
7979
? 'bg-red-300 dark:bg-red-500'
8080
: 'bg-gray-300 dark:bg-gray-darkest',

src/renderer/components/NotificationRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const NotificationRow: FC<INotificationRow> = ({
9090
<div
9191
id={notification.id}
9292
className={cn(
93-
'group flex border-b border-gray-100 bg-white px-3 py-2 hover:bg-gray-100 dark:border-gray-darker dark:bg-gray-dark dark:text-white dark:hover:bg-gray-darker',
93+
'group flex border-b border-gray-100 bg-white pl-3 pr-4 py-2 hover:bg-gray-100 dark:border-gray-darker dark:bg-gray-dark dark:text-white dark:hover:bg-gray-darker',
9494
(isAnimated || animateExit) &&
9595
'translate-x-full opacity-0 transition duration-[350ms] ease-in-out',
9696
(isRead || showAsRead) && Opacity.READ,

src/renderer/components/RepositoryNotifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
4545
return (
4646
<>
4747
<div
48-
className="group flex justify-between bg-gray-100 px-3 py-1.5 dark:bg-gray-darker dark:text-white"
48+
className="group flex justify-between bg-gray-100 pl-3 pr-4 py-1.5 dark:bg-gray-darker dark:text-white"
4949
onClick={toggleRepositoryNotifications}
5050
>
5151
<div

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

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

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

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

src/renderer/components/__snapshots__/RepositoryNotifications.test.tsx.snap

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

0 commit comments

Comments
 (0)