Repository navigation
fix: 1.1.2 — PDF on iOS/iPadOS, print margins, bundled icons - #5
Merged
Merged
Conversation
…the print dialog WebKit on iOS/iPadOS prints the top page instead of the print frame (dozens of sheets of the reference's interface). There the view is printed from the page: a shadow root plus a print-only stylesheet hiding the rest. Desktop keeps the frame. Margins are split between @page and the view's own padding (repeated on every sheet), so a dialog's "None"/"Minimum" margins no longer put the text on the paper's edge (8 mm instead of 0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Vue components import their icons from lucide-vue-next directly and the build bundles them (ISC notice kept), so the package loads from an ESM CDN without lucide in the import map. store() read the clock twice, so a 60-minute token could show "61 min". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Два бага печати из бэклога и от автора.
PDF на iPhone/iPad — много пустых листов. iOS WebKit игнорирует
print()фрейма и печатает всю страницу. На iOS/iPadOS (printsWholePage(): iPhone/iPad/iPod в UA или MacIntel с тачем) печать теперь идёт со страницы: печатный вид в shadow root (стили хоста не протекают),@media printскрывает остальное и снимаетheight/overflowуhtml, body; послеafterprintвсё убирается, заголовок возвращается. На десктопе — прежний фрейм.printOperation/printDocumentпринимаютmode: 'auto' | 'frame' | 'page'.Поля у края листа (Windows). Диалог печати с полями «Нет»/«Минимальные» отбрасывает
@page— текст шёл вплотную к краю. Поля разделены:@page+ собственный padding печатного вида сbox-decoration-break: clone(повторяется на каждом листе). Замер PDF: обычный случай 14 мм по бокам / 18 мм сверху (как было), без@page— 8 мм (было 0), на 2-м листе сверху 6.4 мм.Проверки
browser-check: новый блок «print (iOS)» — Chromium как iPhone печатает со страницы, без фрейма, на бумаге видна только операция, PDF 5 листов = как из фрейма,afterprintчистит; «print: a margin of its own» — padding ≥ 8 мм и cloneИконки встроены в сборку (бэклог): компоненты импортируют ~13 иконок lucide напрямую, сборка их встраивает (ISC-уведомление сохранено, +9 КБ без минификации) — пакет грузится с ESM CDN без
lucide-vue-nextв import map. Попутно: срок токена иногда показывался «61 мин» вместо 60 — два чтения часов вstore().Чистые части печати вынесены в
src/vue/printStyles.ts(без Vue),print.tsих реэкспортирует.🤖 Generated with Claude Code