Align PDF sidebar chip and chrome with Typst layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-25 14:40:42 +03:30
parent 9d6a01f010
commit 570eb12e24
2 changed files with 44 additions and 27 deletions

View File

@@ -174,13 +174,15 @@ function Meta(meta)
</div>
]], logo_html, company, subtitle_html, title)
-- Rotated sidebar labels; page chip comes from print.css @page @bottom-left.
-- Rotated sidebar labels (title then destinations, matching typst grid columns).
-- .chip-gap extends the rule to the @bottom-left page chip (persian ۱/N).
local sidebar = string.format([[
<div class="print-sidebar print-only" aria-hidden="true">
<div class="seg">%s</div>
<div class="seg">%s</div>
<div class="chip-gap" aria-hidden="true"></div>
</div>
]], destinations, title)
]], title, destinations)
local running = string.format([[
<div class="print-running-header print-only" aria-hidden="true">