Repository navigation
Stop the OpenLayer article scrolling sideways on phones - #4
Merged
Merged
Conversation
This was referenced Sep 30, 2026
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.
Requested by Mehran · project thread
Before: on a 390 px phone, "Making OpenLayer" (
PStoComfy2026.html) was about 700 px wide. The page scrolled sideways, and the tag line, the three-rules cards and the "What it does" list ran off the right edge.After: the page fits the screen. The three-rules cards stack one per row and the feature list is a single column on phones. Desktop is unchanged: full-page screenshots before and after are byte-identical.
Why it happened: the article is a CSS grid with an automatic column, which grows to fit its widest child. Inside it, the features and pipeline lists are grids with fixed 190/210 px minimum tracks, so the column stretched to fit several tracks side by side.
How:
css/site.cssgives.blog-articleaminmax(0, 1fr)column.PStoComfy2026.htmlgives its two listswidth: 100%andmin(100%, …)track minimums, the same pattern.galleryalready uses.docs/SITE-OVERVIEW.mdis marked fixed, and there's a newCHANGELOG.mdline.How it was tested
PStoComfy2026.htmlat 390 px went from 312 px to 0..blog-article(archive/blog-1.html,archive/pstocomfyui3.html) look the same before and after, at both widths.Risks and follow-ups
site.csschange only affects.blog-article, which is used by the three pages above.Suggestions