mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 08:55:24 +03:00
fix: offline checker not show in large screen (#1043)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe> closes https://github.com/elk-zone/elk/issues/1042
This commit is contained in:
parent
f758fc6bea
commit
5e940e58cb
2 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,4 @@
|
|||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
smallScreen: boolean
|
||||
}>()
|
||||
const online = useOnline()
|
||||
</script>
|
||||
|
||||
|
|
|
@ -52,9 +52,9 @@ const showUserPicker = logicAnd(
|
|||
<div min-h="[calc(100vh-3.5rem)]" sm:min-h-screen>
|
||||
<slot />
|
||||
</div>
|
||||
<div sm:hidden sticky left-0 right-0 bottom-0 z-10 bg-base pb="[env(safe-area-inset-bottom)]" transition="padding 20">
|
||||
<CommonOfflineChecker :small-screen="isHydrated" />
|
||||
<NavBottom v-if="isHydrated" />
|
||||
<div sticky 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>
|
||||
</div>
|
||||
<aside v-if="isHydrated && !wideLayout" class="hidden sm:none lg:block w-1/4 zen-hide">
|
||||
|
|
Loading…
Reference in a new issue