fix(parallax): add aspect-ratio mode to ParallaxImage to kill SSR/hydration layout shift

This commit is contained in:
daniel-c-harvey
2026-06-11 11:06:16 -04:00
parent 675710d086
commit 92ddc5bb3e
2 changed files with 42 additions and 4 deletions
@@ -5,7 +5,7 @@
role="@(Alt1 != null ? "img" : "presentation")"
aria-label="@Alt1"
aria-hidden="@(Alt1 == null ? "true" : null)"
style="--window-height: @WindowHeightValue; --parallax-pos: 0%;">
style="@WindowStyle">
<div class="layer layer-1"
style="background-image: url('@Image1'); background-size: @ImageWidth @ImageHeight;">