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>) {
4646 'flex-1' ,
4747 'z-[1]' ,
4848 'justify-self-start' ,
49+ 'max-w-full' ,
50+ 'break-words' ,
4951 getTextAlignment ( block . data . align ) ,
5052 textStyle . lineHeight
5153 ) }
Original file line number Diff line number Diff line change @@ -52,8 +52,10 @@ export function Hint(props: BlockProps<DocumentBlockHint>) {
5252 { hasHeading ? (
5353 < Block
5454 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
5759 ) }
5860 ancestorBlocks = { [ ...ancestorBlocks , block ] }
5961 { ...contextProps }
You can’t perform that action at this time.
0 commit comments