Skip to content

Commit f523575

Browse files
committed
Handle circular-corners
1 parent 451290a commit f523575

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

packages/gitbook/src/components/TableOfContents/Trademark.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export function Trademark(props: {
2525
'absolute',
2626

2727
'lg:left-0',
28-
'left-3',
29-
'lg:right-2',
30-
'right-3',
31-
'bottom-0',
28+
'lg:bottom-0',
29+
'left-2',
30+
'right-2',
31+
'bottom-2',
3232

33-
'py-2',
33+
'pt-2',
3434
'lg:py-0',
3535

3636
'pointer-events-none',

packages/gitbook/src/components/primitives/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export function Button({
6262
...rest
6363
}: ButtonProps & { target?: HTMLAttributeAnchorTarget }) {
6464
const sizes = {
65-
default: ['text-base', 'py-2', 'circular-corners:px-6', iconOnly ? 'px-2' : 'px-5'],
66-
medium: ['text-sm', 'py-1.5', 'circular-corners:px-4', iconOnly ? 'px-1.5' : 'px-3.5'],
65+
default: ['text-base', 'py-2', 'circular-corners:px-6', iconOnly ? '!px-2' : 'px-5'],
66+
medium: ['text-sm', 'py-1.5', 'circular-corners:px-4', iconOnly ? '!px-1.5' : 'px-3.5'],
6767
small: ['text-xs', 'py-2', iconOnly ? 'px-2' : 'px-3'],
6868
};
6969

packages/gitbook/src/components/utils/Sheet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export function SheetContent({
6666
'[html.sidebar-filled.theme-bold.tint_&]:bg-tint-subtle',
6767
'[html.sidebar-filled.theme-muted_&]:bg-tint-base',
6868
'[html.sidebar-filled.theme-bold.tint_&]:bg-tint-base',
69+
'circular-corners:rounded-2xl',
6970
'straight-corners:rounded-none',
7071
side === 'right' &&
7172
'right-1.5 data-[state=closed]:animate-exitToRight data-[state=open]:animate-enterFromRight',

0 commit comments

Comments
 (0)