fix(parallax): add aspect-ratio mode to ParallaxImage to kill SSR/hydration layout shift
This commit is contained in:
@@ -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;">
|
||||
|
||||
Reference in New Issue
Block a user