farling42 / fvtt-pdf-pager

PDF Pager for Foundry
MIT License
6 stars 4 forks source link

Override core TOC nesting #63

Closed farling42 closed 1 year ago

farling42 commented 1 year ago

Some PDFs allow more than 2 levels of Outline, so provide all of these in the Journal's TOC.

farling42 commented 1 year ago

See _renderHeadings in foundry.js where there is a hard-coded test for if ( level < minLevel + 2 )

farling42 commented 1 year ago

D:\FoundryVTT\Node\11\resources\app\public\scripts\foundry.js line 73973 JournalSheet#_renderHeadings is unchanged between Foundry V10 and V11

D:\FoundryVTT\Node\11\resources\app\public\css\style.css: line 5309, add

.sheet.journal-entry .pages-list .h4 .heading-link {
  text-indent: calc(3 * var(--level-indent));
}
.sheet.journal-entry .pages-list .h5 .heading-link {
  text-indent: calc(4 * var(--level-indent));
}
farling42 commented 1 year ago

Implemented in 0.43.0