Repository navigation
Structure tab: sharp full-page screenshot; page width ignores clipped overflow - #66
Merged
Merged
Conversation
… overflow Draw the scroll-through shots as separate tiles at their page offsets instead of one stitched image. A stitched image of a long page has to shrink to fit GPU limits (CNN: 22000 px tall -> 144x8192 px, ~0.4 px per CSS px), which looked blurry. Tiles are decoded within a pixel budget across all of them, so a long page stays sharp without using unbounded memory. The stitched image is still made for the Size tab thumbnail. The layout script took scrollWidth as the page width, but content that sticks out to the right is cut off when <html> or <body> has overflow-x hidden/clip (CNN: scrollWidth 760 in a 375 px window), so the wireframe and screenshot were drawn at half width. The page is then as wide as the window. 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.
Follow-up to #65. This commit was pushed after #65 had already been merged, so it was left out.
Problems
Causes and fixes
scrollWidthas the page width. CNN reports 760 in a 375 px window, but<html>hasoverflow-x: hidden, so the extra width can't be scrolled to. When<html>or<body>hasoverflow-xhidden or clip, the page is now as wide as the window.Testing
🤖 Generated with Claude Code