fix layout shift on chrome
This commit is contained in:
parent
4f134c2059
commit
a9bb121354
1 changed files with 5 additions and 3 deletions
|
@ -43,9 +43,11 @@
|
||||||
<main class="min-h-full w-full">
|
<main class="min-h-full w-full">
|
||||||
<header
|
<header
|
||||||
style="transition: 180ms ease;"
|
style="transition: 180ms ease;"
|
||||||
class={scrolled
|
class={`${
|
||||||
? "fixed top-0 z-40 w-full border-b-2 border-b-[#ffffff11] bg-[#131215d0]"
|
scrolled
|
||||||
: "fixed top-0 z-40 w-full border-b-0 border-b-[transparent]"}
|
? "fixed top-0 z-40 w-full border-b-2 border-b-[#ffffff11] bg-[#131215d0]"
|
||||||
|
: "fixed top-0 z-40 w-full border-b-0 border-b-[transparent]"
|
||||||
|
} pl-[calc(100vw-100%)]`}
|
||||||
>
|
>
|
||||||
<nav
|
<nav
|
||||||
style="transition: 180ms ease;"
|
style="transition: 180ms ease;"
|
||||||
|
|
Loading…
Reference in a new issue