mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-14 10:13:52 -04:00
* fix(layout): reserve logo image box via intrinsic dimensions Add the SVG's intrinsic 1280x256 dimensions to the default <img class="logo"> in header.phtml and simple.phtml. The browser uses these to allocate a correctly-proportioned box from HTML parse time, before CSS is applied; without them, a cached image can render at native size for a frame on fast back-to-back navigation. CSS still controls the rendered height (2rem wide, 24px narrow); width auto-derives from the intrinsic ratio. * fix(layout): use rendered logo size for img dimensions 1280 × 256 (the SVG's intrinsic size) replicates the unstyled-frame flash this PR aims to prevent. 160 × 32 has the same 5:1 ratio and matches the CSS-rendered size, so the reserved box is correct both before and after CSS applies. --------- Co-authored-by: Bjørn A. Andersen <polybjorn@users.noreply.github.com>