fix(docs): constrain content images and shrink demo GIF#3696
Merged
Conversation
dgageot
approved these changes
Jul 17, 2026
aheritier
force-pushed
the
docs/fix-tui-demo-image
branch
from
July 17, 2026 07:27
4abb351 to
670210a
Compare
The TUI feature page embedded demo.gif (2000x1600, 1.0MB) as a bare
Markdown image, and the stylesheet had no general content-image
constraint, so it overflowed the content column.
- Add .content img { max-width: 100%; height: auto } so in-article
images scale to their container.
- Re-encode demo.gif to 1280x1024 at 12.5fps (1.0MB -> 555KB) while
keeping the full animation.
aheritier
force-pushed
the
docs/fix-tui-demo-image
branch
from
July 17, 2026 07:37
670210a to
4fb0bea
Compare
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.
Problem
On the TUI feature page, the demo GIF renders oversized and overflows the content column (pushing past the table of contents).
Two root causes:
docs/demo.gif(intrinsic 2000×1600px) as a bare Markdown image.docs/css/style.csshad no general content-image constraint — only scoped.flow-diagram imgand.demo-container img/videorules — so the GIF rendered at native 2000px.Changes
docs/css/style.css— add a catch-all responsive rule so every in-article image scales to its container:docs/demo.gif— re-encoded to reduce page weight (kept as a GIF):Notes
The frozen
.flow-diagram/.demo-containerrules are untouched, and no Markdown pages were edited.