Skip to content

Commit 1392569

Browse files
committed
fix: wraps fixed header with a container to prevent layout shifting when using modals
1 parent 70a219c commit 1392569

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

apps/frontend/app/layouts/default.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ watch(() => route.name, () => { windowsScroll.measure() })
2727
<Body>
2828
<div class="w-full flex flex-col min-h-dvh">
2929
<!-- Header -->
30-
<DefaultHeader
30+
<div
3131
v-motion-slide-visible-once-left
32-
class="fixed w-full transition-top"
32+
class="fixed w-full pr-[--scrollbar-width] transition-top"
3333
:class="windowsScroll.arrivedState.top ? 'top-0' : '-top-20'"
34-
/>
34+
>
35+
<DefaultHeader />
36+
</div>
3537

3638
<!-- NuxtPage -->
3739
<div id="app-body" class="flex grow px-5 py-15 pt-20 2xl:px-20 lg:px-10 xl:px-15">

0 commit comments

Comments
 (0)