Fix iOS Safari status-icon blowup and wonky client cards #5

Merged
TheDarkWizard merged 1 commit from fix/ios-status-icon-and-cards into main 2026-06-30 21:08:05 +00:00

Two mobile fixes from iOS Safari screenshots.

1. Uptime Kuma status icon rendered huge on iOS Safari. The .status-logo <img> had width/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 a background-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-meta was 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. Added flex-wrap: wrap so the note drops to its own line cleanly.

Two mobile fixes from iOS Safari screenshots. **1. Uptime Kuma status icon rendered huge on iOS Safari.** The `.status-logo` `<img>` had `width/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 a `background-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-meta` was 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. Added `flex-wrap: wrap` so the note drops to its own line cleanly.
iOS Safari ignores the CSS width/height on the Uptime Kuma status <img>
and renders the SVG at its intrinsic 640px size inside the flex row.
Render it as a background image on a sized box instead so it can't
escape its 0.7rem footprint (same approach as .mode-ico).

Also let .card-meta wrap: the 'Powered by ...' note was being squeezed
into a thin column and wrapping vertically on narrow screens, inflating
the client cards. flex-wrap drops it to its own line cleanly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
waywardinn/homepage!5
No description provided.