Skip to content

fix(docs): keep wide diagrams scrollable where safe alignment is unsupported - #925

Merged
ddeboer merged 1 commit into
mainfrom
fix/docs-mermaid-css
Oct 23, 2026
Merged

ddeboer merged 1 commit into
mainfrom
fix/docs-mermaid-css

Conversation

@ddeboer

@ddeboer ddeboer commented Oct 22, 2026

Copy link
Copy Markdown
Member

Follow-up to #923, from its review.

  • Fallback for older browsers: Safari before 17.6 doesn’t support justify-content: safe center and drops the declaration. The viewer’s plain center then takes over and pushes the left part of the wide architecture diagram out of scroll reach. A flex-start declaration in front of safe center keeps the whole diagram scrollable there. I checked that the minified CSS keeps both declarations.
  • Selector scope: the no-shrink rule now targets figure.mermaid > svg, matching the container rule above it.

…pported

- Start-align the diagram container before applying safe center, so browsers without safe
  alignment (Safari < 17.6) keep the left edge of wide diagrams in scroll reach instead of
  falling back to the viewer’s plain centering
- Scope the no-shrink rule to the viewer’s figure, matching the container rule
@ddeboer
ddeboer merged commit 0d480d7 into main Oct 23, 2026
4 checks passed
@ddeboer
ddeboer deleted the fix/docs-mermaid-css branch October 23, 2026 16:33
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