ui: move nav to left

zio/stable
Anthony Fu 2022-11-24 16:39:56 +08:00
parent e9c9ecefc8
commit 5aea158cf0
1 changed files with 5 additions and 5 deletions

View File

@ -4,11 +4,13 @@
<div class="hidden md:block w-1/4 zen-hide" relative> <div class="hidden md:block w-1/4 zen-hide" relative>
<div sticky top-0 h-screen flex="~ col"> <div sticky top-0 h-screen flex="~ col">
<slot name="left"> <slot name="left">
<UserSignInEntry v-if="!currentUser" /> <NavTitle p5 />
<NavSide border="y base" />
<PublishButton v-if="currentUser" m5 />
<div flex-auto /> <div flex-auto />
<AccountInfo <AccountInfo
v-if="currentUser" v-if="currentUser"
mx4 mb4 p2 rounded m5 p2 rounded-full
hover:bg-active cursor-pointer transition-100 hover:bg-active cursor-pointer transition-100
:account="currentUser?.account" :account="currentUser?.account"
:link="false" :link="false"
@ -23,9 +25,7 @@
<div class="hidden md:block w-1/4 zen-hide"> <div class="hidden md:block w-1/4 zen-hide">
<div sticky top-0 h-screen flex="~ col"> <div sticky top-0 h-screen flex="~ col">
<slot name="right"> <slot name="right">
<NavTitle p5 /> <UserSignInEntry v-if="!currentUser" />
<NavSide border="y base" />
<PublishButton v-if="currentUser" m5 />
<div flex-auto /> <div flex-auto />
<NavFooter /> <NavFooter />
</slot> </slot>