Commit 85e377b
committed
apply responsive image sizing globally to prevent mobile overflow
Graphviz diagrams are rendered/injected as plain `<img>` elements outside the
banner container, and on mobile they were causing horizontal page overflow.
The previous responsive image rule was scoped to `.banner img`, so those
non-banner images could exceed viewport width and trigger horizontal scrolling.
Move `max-width: 100%` and `height: auto` from `.banner img` to a global `img`
rule. This sets a site-wide default policy that images should fit their
container, while still preserving aspect ratio.
This immediately fixes horizontal overflow for Graphviz images and also provides
the same protection for future non-banner images by default.1 parent 5462718 commit 85e377b
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments