Repository navigation
Conversation
Selected by filename suffix so pages keep plain markdown image syntax. Applies --sm to the Run on menu screenshot on the Cloud custom builds page.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
Contributor
Author
|
waiting on Mintlify for preview before getting this approved |
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Adds --md to the Run on custom deployment dialog so the two stacked screenshots in that Step are no longer both full width, and centres sized images. Also matches on data-path, which carries the clean repo path, with src kept as a fallback.
Contributor
🌐 i18n translation sync checkEnglish docs changed in this PR. 32 files in 4 languages may not be synced yet. The automated translation workflow handles these updates. Expand a language to see the files. Japanese (
|
Contributor
|
Switching from main to my branch so they can land as a stack once ready |
Takes the Run on screenshot move into the Tip and repoints it at the renamed file. Sizing only now: the display:block and margin-inline:auto declarations are gone.
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.
Summary
Stacks on #2381. That PR caps every article image at 750px, which fixes the stretched screenshots. This adds two sizes below the cap so a small screenshot can be small, without converting any markdown to HTML.
run-on.pngis the case that prompted this: it is a 682x346 crop of a dropdown menu, so the 750px cap leaves it at its natural 682px and it still reads as full width. It wants 300-450px.How it works
Mintlify has no width attribute for
. The documented alternative is an HTML<img>with a Tailwind class, which would mean converting every image that wants a non-default size.This selects on the file name instead, so the markdown stays markdown and sizing is one rename:
--sm--mdTwo details worth knowing if anyone edits these rules:
*=not$=. Mintlify serves images from its CDN with a query string appended (.../run-on--sm.png?fit=max&auto=format&q=85&s=...), so an ends-with selector would never match. Confirmed against the live page.:not([data-component-part="card-image"])is deliberate. It repeats the cap rule's exclusion so these rules win on specificity (121 vs 111) rather than on source order.The suffix is on the file, not in the markdown, so alt text stays clean for screen readers and search. Click-to-zoom still opens the full-size image.
What changed
custom.css: the two rules, plus matching.framerules so a Frame does not leave a 400px image floating in a 750px box.run-on.pngrenamed torun-on--sm.png, with the reference updated in all five locales (en, es, ja, ko, zh).Only that one image changes size. Everything else keeps the 750px cap.
Checked
run-on-custom-deployment.pngis a dialog with body text,selected-deployment.jpgis a full editor window./run-on.pngreferences remain.