@@ -8,9 +8,9 @@ definePageMeta({
88});
99
1010const localePath = useLocalePath ();
11-
12- const { t, locale, setLocale } = useI18n ();
1311const { theme } = useSettingManager ();
12+ const { t, locale, setLocale } = useI18n ();
13+
1414const userInfoStore = useUserInfoStore ();
1515const { currentLanguage } = storeToRefs (userInfoStore );
1616
@@ -129,9 +129,12 @@ watch(
129129
130130<template >
131131 <UPage
132- class="h-screen"
132+ class="h-screen flex flex-col"
133+ :ui =" {
134+ center: ' flex flex-col h-full min-h-0'
135+ } "
133136 :style =" {
134- backgroundColor: theme === ' dark' ? ' #201F22 ' : ' #F5F5F5'
137+ backgroundColor: theme === ' dark' ? ' #2C2C2C ' : ' #F5F5F5'
135138 } "
136139 >
137140 <UPageHeader
@@ -148,8 +151,8 @@ watch(
148151 </template >
149152 </UPageHeader >
150153
151- <UPageBody class="mt-2 mx-2">
152- <div class =" flex gap-1 w-full" >
154+ <UPageBody class="mt-2 mx-2 flex-1 min-h-0 h-full overflow-y-auto ">
155+ <div class =" flex gap-1 w-full min-h-0 " >
153156 <UNavigationMenu
154157 :items =" settingMenu "
155158 :highlight =" true "
@@ -159,9 +162,7 @@ watch(
159162 :class =" locale === ' en' ? ' w-64' : ' w-48' "
160163 />
161164
162- <USeparator orientation="vertical" class="h-48" />
163-
164- <UCard class="flex-1" variant="subtle">
165+ <UCard class="flex-1 min-w-0 h-full overflow-y-auto" variant="subtle">
165166 <slot />
166167 </UCard >
167168 </div >
0 commit comments