style(docs): give standalone screenshots room to breathe - #1108
Merged
Merged
Conversation
Screenshots sat as tight against the surrounding text as a paragraph does, which reads cramped on image-heavy pages. Scoped to images that are alone in their paragraph, so table icons (which sit in <td>) and inline images are unaffected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Jira issue(s): PROOF-XXX
Screenshots currently sit as tight against the surrounding text as an ordinary paragraph does, which reads cramped on image-heavy pages.
Changes:
custom.css:margin-block: 2remon paragraphs whose only child is a zoomable image.Scoped deliberately. Table icons sit in
<td>rather than<p>, so icon columns like the ones on/kai/settings/and/kai/getting-started/keep their tight spacing. Inline images are unaffected for the same reason.Verified on
/kai/settings/, which has 13 images across both kinds:Split out of #1107 so the Kai content there stays reviewable on its own. This is site-wide, every screenshot on help.keboola.com, so it deserves its own look rather than riding along in a content PR.
Two things worth a second opinion:
:has(). Well supported in current browsers, and it degrades to today's behaviour if unsupported rather than breaking. I have only checked it in dev, not in a production build, so it is worth a look on the Vercel preview given the view-transition caveat in CLAUDE.md.