Commit 8a7f698
committed
Mobile page-hero-tab: drive size from height (aspect always preserved)
The previous mobile rule (width: 80% + max-height: 60%) hit the
max-height cap at viewport widths around 785px+, clipping height
while leaving width fixed — distorting the 349:111 aspect ratio.
Switch to height: 60%; width: auto so the <img>'s intrinsic aspect
ratio drives the rendered shape and width auto-derives.
Placement (right: -2%, bottom: 15%) unchanged.1 parent b0ac5fb commit 8a7f698
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
0 commit comments