Pane v2 slice 1: orientation-aware first-page hero (pdf.js, #629) #632
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-pane2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First slice of the approved pane-v2 design (
pane-v2-unified-mockup.html), on the #629 decision (A: pdf.js client-side, B2 recorded fallback in #630)./api/v1/thumb(now object-fit contain in hero sizes, orientation from natural dims); PDFs raw + vendored pdf.js 4.8.69 (page 1 to canvas, DPR-aware, orientation from the page box); office via existing/api/v1/preview/pdf(Gotenberg) then the same pdf.js path; text/markdown/code get a first-lines page card streamed and cut at 4KB/28 lines — no converter needed.openPreviewoverlay is no longer reachable from the pane (full removal is slice 1b).web/static/(pdfjs.mjs+ worker + LICENSE, Apache-2.0) because both ci.yml and release.ymlcp web/static/*without-r; lazy-loaded via dynamic import on first PDF/office hero only.pure:hero(plan/orientation/snippet/click-kind) +web/test/hero.test.js(21 asserts). Two #615-era guards updated to the approved design: det-dock's width pin (320→380) and det-pv's thumb-click assert (openPreview → editor/raw hand-off).Red-green on the runner: RED confirmed (pure block absent), then go vet + full go test (webcheck included) + extract fence + all web suites green (commit
faddd90).