Commit 2f736d3
committed
Fix mobile overflow with viewport width units
- Use 100vw for snippets-container to constrain to viewport width
- Calculate max-width for snippet boxes: calc(100vw - 2rem)
- Calculate max-width for code blocks: calc(100vw - 4rem)
- Ensure content never overflows even on very small screens (< 590px)1 parent 5a747fc commit 2f736d3
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | | - | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
161 | | - | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| |||
0 commit comments