Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ skills-lock.json

# Local test fixtures (user-provided, not committed)
test_documents/
.probe/
6 changes: 5 additions & 1 deletion src/lib/components/PdfPagePeek.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
return;
}
try {
await renderer.renderPage(target, canvas!, cssWidth);
// The peek sizes its canvas from the drawing itself — it has no
// layout of its own to stretch into.
const size = await renderer.renderPage(target, canvas!, cssWidth);
canvas!.style.width = `${size.width}px`;
canvas!.style.height = `${size.height}px`;
if (token === renderToken) status = 'ready';
} catch {
if (token === renderToken) status = 'unavailable';
Expand Down
Loading
Loading