Fix iOS status-icon blowup at the source (strip SVG intrinsic size) #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ios-status-icon-v2"
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?
Problem
The iOS Safari status-icon blowup kept coming back. Root cause:
assets/uptimekuma.svgdeclaredwidth="640" height="640", giving it a 640px intrinsic size that older iOS Safari used as the flex-basis and rendered at full size. Previous fixes (background-image, then a block wrapper) tried to contain that 640px bomb and churned across several commits.Fix
Defuse it at the source — remove the
width/heightattributes from the SVG (keepingviewBoxfor aspect ratio). Intrinsic size drops from 640px to a harmless default, so the icon can't blow up in any flex engine. With the root cause gone, the markup reverts to a plain sized<img class="status-logo">and the fragile wrapper CSS is removed.Verification
Reproduced and tested in Playwright WebKit (the same engine as iOS Safari) under iPhone 13 emulation:
index.htmlstatus dot renders at 12.6px (was blowing up to the 640px intrinsic size)apps.htmlUptime Kuma card icon still renders correctly at 30.6px — no regression for the other usage of this SVGscrollWidth == innerWidth == 390)