Skip to content

Cap article images at 750px - #2381

Open
XXJones21 wants to merge 2 commits into
mainfrom
jones/image-max-width
Open

XXJones21 wants to merge 2 commits into
mainfrom
jones/image-max-width

Conversation

@XXJones21

@XXJones21 XXJones21 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Screenshots on pages such as Cloud custom builds render at up to about 1280px wide on large monitors. The full-bleed layout in custom.css removes Mintlify's content width limit, so images stretch to the full article width.

This adds two rules to custom.css:

  • Images inside #content are capped at max-width: 750px. Images narrower than 750px keep their size, and aspect ratio is preserved.
  • A <Frame> that wraps an image shrinks to fit the capped image, so the image does not float inside a full-width box.

The rules are global, so they apply to every page and every locale. Card images are excluded. Videos are not affected.

To make a single image smaller than the cap, set a Tailwind width on it, for example className="w-[400px]".

Cloud custom builds page

  • Moved the Run on menu screenshot inside the Tip that describes that menu.
  • Split the two Customise build steps into nested bullets.

The full-bleed layout removes Mintlify's content width limit, so
screenshots stretched to the full article width on large monitors.
Limit images inside #content to 750px and shrink Frames that wrap an
image to match.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
comfy 🟢 Ready View Preview Nov 17, 2026, 12:22 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The stylesheet caps content images and image-containing frames. The cloud custom-build guide repositions a screenshot and reformats build customization guidance.

Changes: Content image sizing

Layer / File(s) Summary
Image and frame limits
custom.css
Images inside #content stay within the available width and are capped at 750px, except card images. Frames containing images are capped at 766px.

Deployment guide updates

Layer / File(s) Summary
Cloud build instructions
development/deploy/cloud-custom-builds.mdx
The run-menu screenshot now follows the instructions for opening the Developer Platform from the cloud menu. Build customization options use question headings with nested guidance bullets; the node-selection and model-inclusion guidance remains the same.

Possibly related PRs

Suggested reviewers: deepme987

Merge Risk: Minimal · up to cf73d

This change caps content images at 750px and tidies one deployment guide. It is a low-risk documentation and styling change with no identified problems, so it is ready to merge.

Pre-merge checks: Passed 2

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8b4d6c80-b78b-496b-b190-2797a1ed4534
Commits

Reviewing files that changed from the base of the PR and between 0294913 and cf73dd1.

Files selected for processing: 1

  • development/deploy/cloud-custom-builds.mdx

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🌐 i18n translation sync check

English docs changed in this PR. 36 files in 4 languages may not be synced yet. The automated translation workflow handles these updates. Expand a language to see the files.

Japanese (ja): 9 files
  • ja/development/comfy-router/models/byteplus/seedream-4-0-250828/code.mdx
  • ja/development/comfy-router/models/byteplus/seedream-4-5-251128/code.mdx
  • ja/development/comfy-router/models/byteplus/seedream-5-0-260128/code.mdx
  • ja/development/comfy-router/models/byteplus/seedream-5-0-flash-260915/code.mdx
  • ja/development/comfy-router/models/byteplus/seedream-5-0-pro-260628/code.mdx
  • ja/development/comfy-router/models/byteplus/seedream-5-5-261028/code.mdx
  • ja/development/comfy-router/models/openai/gpt-image-2-6-flare/code.mdx
  • ja/development/comfy-router/models/openai/gpt-image-2-6-sunburst/code.mdx
  • ja/development/deploy/cloud-custom-builds.mdx
Simplified Chinese (zh): 9 files
  • zh/development/comfy-router/models/byteplus/seedream-4-0-250828/code.mdx
  • zh/development/comfy-router/models/byteplus/seedream-4-5-251128/code.mdx
  • zh/development/comfy-router/models/byteplus/seedream-5-0-260128/code.mdx
  • zh/development/comfy-router/models/byteplus/seedream-5-0-flash-260915/code.mdx
  • zh/development/comfy-router/models/byteplus/seedream-5-0-pro-260628/code.mdx
  • zh/development/comfy-router/models/byteplus/seedream-5-5-261028/code.mdx
  • zh/development/comfy-router/models/openai/gpt-image-2-6-flare/code.mdx
  • zh/development/comfy-router/models/openai/gpt-image-2-6-sunburst/code.mdx
  • zh/development/deploy/cloud-custom-builds.mdx
Korean (ko): 9 files
  • ko/development/comfy-router/models/byteplus/seedream-4-0-250828/code.mdx
  • ko/development/comfy-router/models/byteplus/seedream-4-5-251128/code.mdx
  • ko/development/comfy-router/models/byteplus/seedream-5-0-260128/code.mdx
  • ko/development/comfy-router/models/byteplus/seedream-5-0-flash-260915/code.mdx
  • ko/development/comfy-router/models/byteplus/seedream-5-0-pro-260628/code.mdx
  • ko/development/comfy-router/models/byteplus/seedream-5-5-261028/code.mdx
  • ko/development/comfy-router/models/openai/gpt-image-2-6-flare/code.mdx
  • ko/development/comfy-router/models/openai/gpt-image-2-6-sunburst/code.mdx
  • ko/development/deploy/cloud-custom-builds.mdx
Spanish (es): 9 files
  • es/development/comfy-router/models/byteplus/seedream-4-0-250828/code.mdx
  • es/development/comfy-router/models/byteplus/seedream-4-5-251128/code.mdx
  • es/development/comfy-router/models/byteplus/seedream-5-0-260128/code.mdx
  • es/development/comfy-router/models/byteplus/seedream-5-0-flash-260915/code.mdx
  • es/development/comfy-router/models/byteplus/seedream-5-0-pro-260628/code.mdx
  • es/development/comfy-router/models/byteplus/seedream-5-5-261028/code.mdx
  • es/development/comfy-router/models/openai/gpt-image-2-6-flare/code.mdx
  • es/development/comfy-router/models/openai/gpt-image-2-6-sunburst/code.mdx
  • es/development/deploy/cloud-custom-builds.mdx

Local sync: npm run translate (see README: Automated translation)

This branch was successfully deployed

1 active deployment
staging — cf73dd19 Deployed Nov 17, 2026 by mintlify[bot]
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