Skip to content

Commit 276f088

Browse files
committed
chore: upgrade to @primer/react@37
2 parents 1f7a2df + 0327469 commit 276f088

File tree

13 files changed

+90
-87
lines changed

13 files changed

+90
-87
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"@primer/octicons-react": "19.15.2",
8484
"@primer/primitives": "10.7.0",
8585
"@primer/react": "37.25.0",
86-
"@tailwindcss/postcss": "4.1.7",
86+
"@tailwindcss/postcss": "4.1.8",
8787
"@testing-library/jest-dom": "6.6.3",
8888
"@testing-library/react": "16.3.0",
8989
"@testing-library/user-event": "14.6.1",
@@ -116,7 +116,7 @@
116116
"semver": "7.7.2",
117117
"styled-components": "6.1.18",
118118
"tailwind-merge": "3.3.0",
119-
"tailwindcss": "4.1.7",
119+
"tailwindcss": "4.1.8",
120120
"terser-webpack-plugin": "5.3.14",
121121
"ts-jest": "29.3.4",
122122
"ts-loader": "9.5.2",

pnpm-lock.yaml

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

src/renderer/components/fields/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const Checkbox: FC<ICheckbox> = ({
3333
<input
3434
type="checkbox"
3535
id={props.name}
36-
className="size-4 rounded-sm cursor-pointer"
36+
className="size-2 rounded-sm cursor-pointer"
3737
checked={props.checked}
3838
onChange={props.onChange}
3939
disabled={props.disabled}

src/renderer/components/fields/RadioGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const RadioGroup: FC<IRadioGroup> = (props: IRadioGroup) => {
3535
>
3636
<input
3737
type="radio"
38-
className="size-4 cursor-pointer"
38+
className="size-2 cursor-pointer"
3939
id={name}
4040
name={props.name}
4141
value={item.value}

src/renderer/components/icons/LogoIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export const LogoIcon: FC<ILogoIcon> = ({
2424
}: ILogoIcon) => (
2525
<svg
2626
className={cn(
27-
size === Size.SMALL && 'size-5',
28-
size === Size.MEDIUM && 'size-10',
29-
size === Size.LARGE && 'size-16',
27+
size === Size.SMALL && 'size-2.5',
28+
size === Size.MEDIUM && 'size-5',
29+
size === Size.LARGE && 'size-8',
3030
)}
3131
onClick={() => onClick?.()}
3232
xmlns="https://www.w3.org/2000/svg"

src/renderer/components/icons/VolumeDownIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { FC } from 'react';
22

33
export const VolumeDownIcon: FC = () => (
44
<svg
5-
className="size-4"
5+
className="size-2"
66
xmlns="http://www.w3.org/2000/svg"
77
viewBox="0 0 24 24"
88
width="24"

src/renderer/components/icons/VolumeUpIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { FC } from 'react';
22

33
export const VolumeUpIcon: FC = () => (
44
<svg
5-
className="size-4"
5+
className="size-2"
66
xmlns="http://www.w3.org/2000/svg"
77
viewBox="0 0 24 24"
88
width="24"

src/renderer/components/layout/Contents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export const Contents: FC<IContents> = ({
2222
<Box
2323
className={cn(
2424
'grow overflow-x-hidden overflow-y-auto',
25-
paddingHorizontal && 'px-8',
26-
paddingBottom && 'pb-4',
25+
paddingHorizontal && 'px-4',
26+
paddingBottom && 'pb-2',
2727
)}
2828
>
2929
{children}

src/renderer/components/notifications/NotificationRow.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const NotificationRow: FC<INotificationRow> = ({
9696
id={notification.id}
9797
className={cn(
9898
'group border-b',
99-
'pl-3 pr-1 py-1.5',
99+
'pl-1.5 pr-1 py-0.75',
100100
'text-gitify-font border-gitify-notification-border hover:bg-gitify-notification-hover',
101101
(isAnimated || animateExit) &&
102102
'translate-x-full opacity-0 transition duration-[350ms] ease-in-out',
@@ -110,7 +110,10 @@ export const NotificationRow: FC<INotificationRow> = ({
110110
className="relative"
111111
>
112112
<Tooltip text={notificationType} direction="e">
113-
<NotificationIcon size={Size.LARGE} className={iconColor} />
113+
{/* Using a fragment here because Tooltip require button inside it for some reason :cringe */}
114+
<>
115+
<NotificationIcon size={Size.LARGE} className={iconColor} />
116+
</>
114117
</Tooltip>
115118

116119
<Stack

src/renderer/components/primitives/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const Header: FC<IHeader> = (props: IHeader) => {
1919
const { fetchNotifications } = useContext(AppContext);
2020

2121
return (
22-
<Box className="px-6 py-4">
22+
<Box className="px-3 py-2">
2323
<Stack direction="horizontal" justify="space-between">
2424
<IconButton
2525
aria-labelledby="Go Back"

0 commit comments

Comments
 (0)