Skip to content

docs: stop a portrait screenshot taking the whole page - #7016

Merged
gustavosbarreto merged 1 commit into
masterfrom
docs/image-height
Sep 2, 2026
Merged

docs: stop a portrait screenshot taking the whole page#7016
gustavosbarreto merged 1 commit into
masterfrom
docs/image-height

Conversation

@gustavosbarreto

Copy link
Copy Markdown
Member

An image in the prose was given the column's width, which is right for a screenshot of a table and wrong for a tall one. The MFA dialogs are phone-shaped panels, so they rendered near a thousand pixels high to show a small dialog, and the reader scrolled through a screenful of picture to get to the next sentence.

The cap is on height now, with width following in proportion and the image centred, so a picture takes about as much of the page as it is worth: the device list still fills the column, the MFA dialogs come down from 696x996 to 336x480. Clicking one still opens it at full size, which is where somebody goes to read the detail.

The same ceiling applies inside a <Shot>, so a captured screenshot that happens to be tall behaves the same way.

An image was given the column's width, so a tall one - the MFA dialogs,
where the picture is a phone-shaped panel - rendered near a thousand
pixels high to show a small dialog, and the reader scrolled past a
screenful of it.

Height is capped and width follows, so a picture takes about as much of
the page as it is worth. Clicking one still opens it at full size.
@gustavosbarreto
gustavosbarreto requested a review from a team as a code owner September 2, 2026 15:02
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Claude finished @gustavosbarreto's task in 28s —— View job


Code Review Complete

Reviewed 2 files across code quality, security, testing, language patterns, and architecture — no new issues found. The code looks good as-is.

The max-height: 30rem cap with width: auto/height: auto and margin-inline: auto is applied consistently to both the prose image rule and the <Shot> frame image, so a tall portrait screenshot is bounded and centred in both cases while a wide one still fills the column. Zoom-to-full-size is preserved.


To request another review round, comment /review.
· docs/image-height

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Documentation preview: https://82762b5d.shellhub-docs.pages.dev

@gustavosbarreto
gustavosbarreto merged commit 80c7975 into master Sep 2, 2026
42 checks passed
@gustavosbarreto
gustavosbarreto deleted the docs/image-height branch September 2, 2026 15:09
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.

1 participant