Skip to content

Commit

Permalink
fix: NavBottom fixed, not sticky
Browse files Browse the repository at this point in the history
I could be missing something, but this fixes the bottom nav bar for me on mobile in Firefox, doesn't regress in Chrome, and doesn't affect the desktop layout.

resolve elk-zone#1558
  • Loading branch information
zmc committed Nov 16, 2023
1 parent e00e407 commit a3d1f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const isGrayscale = usePreferences('grayscaleMode')
<div min-h="[calc(100vh-3.5rem)]" sm:min-h-screen>
<slot />
</div>
<div sticky left-0 right-0 bottom-0 z-10 bg-base pb="[env(safe-area-inset-bottom)]" transition="padding 20">
<div fixed left-0 right-0 bottom-0 z-10 bg-base pb="[env(safe-area-inset-bottom)]" transition="padding 20">
<CommonOfflineChecker v-if="isHydrated" />
<NavBottom v-if="isHydrated" sm:hidden />
</div>
Expand Down

0 comments on commit a3d1f0f

Please sign in to comment.