File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
packages/gitbook/src/components/DocumentView Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' gitbook ' : patch
3
+ ---
4
+
5
+ Adjust hint block spacing
Original file line number Diff line number Diff line change @@ -37,22 +37,21 @@ export function Hint(props: BlockProps<DocumentBlockHint>) {
37
37
>
38
38
< div
39
39
className = { tcls (
40
- 'py-3' ,
41
- 'pl-3' ,
42
- '-mt-px' , // Bump icon up 1px for optical alignment with heading
40
+ 'py-4' ,
41
+ 'pl-4' ,
43
42
hasHeading ? hintStyle . header : null ,
44
43
hintStyle . iconColor
45
44
) }
46
45
>
47
46
< Icon
48
47
icon = { hintStyle . icon }
49
- className = { tcls ( 'size-[1.2em]' , 'mt-0.5 ' , firstLine . lineHeight ) }
48
+ className = { tcls ( 'size-[1.2em]' , 'mt-px ' , firstLine . lineHeight ) }
50
49
/>
51
50
</ div >
52
51
{ hasHeading ? (
53
52
< Block
54
53
style = { tcls (
55
- 'flip-heading-hash p-3 text-[1em] *:mt-0' ,
54
+ 'flip-heading-hash p-4 pl- 3 text-[1em] *:mt-0' ,
56
55
hasHeading ? hintStyle . header : null
57
56
) }
58
57
ancestorBlocks = { [ ...ancestorBlocks , block ] }
@@ -70,11 +69,12 @@ export function Hint(props: BlockProps<DocumentBlockHint>) {
70
69
'flip-heading-hash'
71
70
) }
72
71
style = { [
73
- 'p-3' ,
72
+ 'p-4' ,
73
+ 'pl-3' ,
74
74
'empty:p-0' ,
75
75
'-row-end-1' ,
76
76
'-col-end-1' ,
77
- 'space-y-4 ' ,
77
+ 'space-y-3 ' ,
78
78
'[&_.hint]:border' ,
79
79
'[&_pre]:border' ,
80
80
'[&_pre]:border-neutral' ,
You can’t perform that action at this time.
0 commit comments