Fix iOS Safari status-icon blowup and wonky client cards #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ios-status-icon-and-cards"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two mobile fixes from iOS Safari screenshots.
1. Uptime Kuma status icon rendered huge on iOS Safari. The
.status-logo<img>hadwidth/height: 0.7rem, which Chrome/Android honored but iOS Safari ignored — WebKit rendered the SVG at its intrinsic 640×640 size inside the flex row (a known replaced-element-in-flexbox bug). Switched the element from an<img>to a sized box with the SVG as abackground-image(center / contain), the same technique already used for.mode-ico. Background images can't exceed their box, so the icon is locked to its 0.7rem footprint everywhere.2. Client cards looked wonky / over-tall.
.card-metawas a non-wrapping flex row (element.waywardinn.com · Powered by Element Web). On narrow screens the note got squeezed into a thin column and wrapped vertically, inflating card height. Addedflex-wrap: wrapso the note drops to its own line cleanly.