Commit 5881194
committed
docs(sphinx) Render demos at real size, not stretched
why: The aspect-ratio hook forced width:100%, so a narrow demo (a 299px
gif) was blown up to the ~750px column and went soft. The real pixels
should show at their real size.
what:
- Inject width:<W>px; max-width:100% (was width:100%) so each demo renders
at its true size, shrinks on a narrow screen, and never upscales — still
aspect-ratio-reserved, so there is no layout shift1 parent aea1c61 commit 5881194
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments