fix: editor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="flex flex-1">
|
||||
<div class="flex flex-1 overflow-x-hidden h-svh">
|
||||
<USidebar v-model:open="open" collapsible="icon" rail :ui="{
|
||||
container: 'h-full',
|
||||
container: 'h-full z-80',
|
||||
inner: 'bg-elevated/25 divide-transparent',
|
||||
body: 'py-0'
|
||||
}">
|
||||
@@ -32,10 +32,10 @@
|
||||
</USidebar>
|
||||
|
||||
<div class="flex-1 flex flex-col">
|
||||
<div class="h-(--ui-header-height) shrink-0 flex items-center justify-between px-4 border-b border-default">
|
||||
<div class="flex h-(--ui-header-height) shrink-0 items-center justify-between px-4 border-b border-default">
|
||||
<UButton icon="i-lucide-panel-left" color="neutral" variant="ghost" aria-label="Toggle sidebar"
|
||||
@click="open = !open" />
|
||||
<div class="flex items-center gap-12">
|
||||
<div class="hidden md:flex items-center gap-12">
|
||||
<div class="flex items-center gap-2">
|
||||
<CountryCurrencySwitch />
|
||||
<LangSwitch />
|
||||
@@ -50,7 +50,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex-1 p-4">
|
||||
<div class="flex-1 p-4 bg-slate-50 h-svh">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
@@ -158,6 +158,7 @@ import { useFetchJson } from '@/composable/useFetchJson'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import CountryCurrencySwitch from '@/components/inner/CountryCurrencySwitch.vue'
|
||||
import LangSwitch from '@/components/inner/LangSwitch.vue'
|
||||
import ThemeSwitch from '@/components/inner/ThemeSwitch.vue'
|
||||
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
Reference in New Issue
Block a user