File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
packages/gitbook/src/components/DocumentView Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " gitbook " : patch
3
+ ---
4
+
5
+ Fix headings styles in hint block
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ export function Heading(props: BlockProps<DocumentBlockHeading>) {
46
46
'flex-1' ,
47
47
'z-[1]' ,
48
48
'justify-self-start' ,
49
+ 'max-w-full' ,
50
+ 'break-words' ,
49
51
getTextAlignment ( block . data . align ) ,
50
52
textStyle . lineHeight
51
53
) }
Original file line number Diff line number Diff line change @@ -52,8 +52,10 @@ export function Hint(props: BlockProps<DocumentBlockHint>) {
52
52
{ hasHeading ? (
53
53
< Block
54
54
style = { tcls (
55
- 'flip-heading-hash !py-4 items-start px-4 pl-3 text-[1em] *:flex-none' ,
56
- hasHeading ? hintStyle . header : null
55
+ '!py-4 w-full items-start pl-3 text-[1em] *:flex-none' ,
56
+ // Heading hash styles
57
+ 'flip-heading-hash pr-8' ,
58
+ hintStyle . header
57
59
) }
58
60
ancestorBlocks = { [ ...ancestorBlocks , block ] }
59
61
{ ...contextProps }
You can’t perform that action at this time.
0 commit comments