💄 Better navbar

This commit is contained in:
LittleSheep 2024-03-30 19:24:19 +08:00
parent f552cdcf74
commit c616214c3b
2 changed files with 19 additions and 14 deletions

View File

@ -6,25 +6,33 @@
:rail="drawerMini" :rail="drawerMini"
:rail-width="58" :rail-width="58"
:order="0" :order="0"
floating
@click="drawerMini = false" @click="drawerMini = false"
> >
<div class="flex flex-col h-full"> <div class="flex flex-col h-full">
<div class="flex items-center justify-between px-3 pb-2.5 border-opacity-15 min-h-[64px]" <v-toolbar
style="border-bottom-width: thin" class="flex items-center justify-between px-[12px] border-opacity-15"
:style="`padding-top: max(${safeAreaTop}, 10px)`"> color="primary"
height="64"
:style="`padding-top: ${safeAreaTop}`"
>
<div class="flex items-center"> <div class="flex items-center">
<img src="/favicon.png" alt="Logo" width="36" height="36" class="block" /> <img src="/favicon.png" alt="Logo" width="36" height="36" class="block" />
<div v-show="!drawerMini" class="ms-6 font-medium">Solar Network</div> <div v-show="!drawerMini" class="ms-6 font-medium">Solar Network</div>
</div> </div>
<v-btn <v-spacer />
v-show="!drawerMini"
icon="mdi-arrow-collapse-left" <div>
size="small" <v-btn
variant="text" v-show="!drawerMini"
@click.stop="drawerMini = true" icon="mdi-arrow-collapse-left"
/> size="small"
</div> variant="text"
@click.stop="drawerMini = true"
/>
</div>
</v-toolbar>
<div class="flex-grow-1"> <div class="flex-grow-1">
<realm-list /> <realm-list />

View File

@ -30,9 +30,6 @@ export default defineConfig({
}, },
] ]
}, },
devOptions: {
enabled: true
}
}) })
], ],
resolve: { resolve: {