Skip to content

fix(bookcontent): scale alt headings with the selected text size#483

Merged
kdroidFilter merged 1 commit into
masterfrom
fix/alt-headings-relative-size
Jun 13, 2026
Merged

fix(bookcontent): scale alt headings with the selected text size#483
kdroidFilter merged 1 commit into
masterfrom
fix/alt-headings-relative-size

Conversation

@kdroidFilter

Copy link
Copy Markdown
Owner

AltHeadingItem used hardcoded font sizes (20/18/16sp depending on level), so the alternate TOC headings rendered in the book content did not follow the user's chosen text size (keyboard, zoom buttons, pointer zoom).

This makes the heading size relative to the base text size (×1.25 / ×1.125 / ×1.0). At the default 16sp the rendered values are unchanged (20/18/16), but they now scale with the rest of the content.

AltHeadingItem used hardcoded font sizes (20/18/16sp per level), so
alternate TOC headings did not follow the user's text size. Make the
size relative to the base text size (x1.25 / x1.125 / x1.0), preserving
the previous values at the default 16sp.
@kdroidFilter kdroidFilter merged commit e2c1d9c into master Jun 13, 2026
6 of 7 checks passed
@kdroidFilter kdroidFilter deleted the fix/alt-headings-relative-size branch June 13, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant