Skip to content

Record that lf-shot's Fit never enlarges a capture past 100% - #4775

Merged
max-sixty merged 1 commit into
mainfrom
shot-fills-its-box
Oct 30, 2026
Merged

max-sixty merged 1 commit into
mainfrom
shot-fills-its-box

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Since #3635, Fit scales a pair down to its box but never up: fitShotGeometry caps the scale at 1. A probe of a 560x520 pair inside layout-column draws its frames at 560px in the 720px element. The lf-shot header said only that Fit keeps both frames in the box, which reads as filling it, and browser/AGENTS.md gives every widget a duty to fill the box it gets. An agent reconciling the two could stretch small captures across the box again, as lf-shot did before #3635, when a small crop on a page with no Layout drew across a 1728px window and blurred.

The header now records the decision and its reason: stretching a capture blurs it, so a capture narrower than its box sits at its own size, and how large to capture is the author's call. Comment only; behavior is unchanged.

This was written by Claude Code on behalf of max-sixty

Since #3635, Fit scales a pair down to its box but never up:
`fitShotGeometry` caps the scale at 1. A probe of a 560x520 pair inside
`layout-column` draws its frames at 560px in the 720px element. The
header said only that Fit keeps both frames in the box, which reads as
filling it, and `browser/AGENTS.md` gives every widget a duty to fill
the box it gets. An agent reconciling the two could stretch small
captures across the box again, as `lf-shot` did before #3635, when a
small crop on a page with no Layout drew across a 1728px window and
blurred.

The header now records the decision and its reason: stretching a
capture blurs it, so a capture narrower than its box sits at its own
size, and how large to capture is the author's call. Behavior is
unchanged.
@max-sixty
max-sixty merged commit cea00d9 into main Oct 30, 2026
4 checks passed
@max-sixty
max-sixty deleted the shot-fills-its-box branch October 30, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants