Commit ac6cdcd
fix(site): repair mobile feature card rendering
The mobile rule .feature-visual { max-height: 240px } constrained the parent flex container while .device-phone--xl (220px wide x 9:19.5 aspect = ~480px tall) overflowed it. With centered alignment, phones spilled above and below the visual container, intersecting description text and tag pills. Browser-device videos also lacked an explicit max-width on small viewports.
- Drop the artificial max-height; let .feature-visual grow to fit its device naturally.
- Cap .device-phone--xl at min(60vw, 220px) and force browser device to 100% of available width on small viewports.
- Switch video object-fit to cover with explicit dims so the device frame fills cleanly.
- Shorten scroll-reveal transition on mobile to 0.4s so cards don't appear blank during fast scrolls.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent be596c2 commit ac6cdcd
1 file changed
Lines changed: 26 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | | - | |
| 1682 | + | |
1683 | 1683 | | |
1684 | | - | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1685 | 1695 | | |
1686 | 1696 | | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
1690 | 1701 | | |
1691 | 1702 | | |
1692 | 1703 | | |
| |||
1702 | 1713 | | |
1703 | 1714 | | |
1704 | 1715 | | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | 1716 | | |
1712 | 1717 | | |
1713 | 1718 | | |
1714 | 1719 | | |
1715 | 1720 | | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1716 | 1731 | | |
1717 | 1732 | | |
1718 | 1733 | | |
| |||
0 commit comments