移动端适配问题
This commit is contained in:
1 parent
72642b981e
commit
e70e17efd4
9 files changed
+271
-11
No files matched your search
@@ -14,6 +14,7 @@ import ThemeToggleButton from '../components/ThemeToggleButton.vue';
|
||||
import DeleteConfirmDialog from '../components/DeleteConfirmDialog.vue';
|
||||
import GeneralFeedbackDialog from '../components/GeneralFeedbackDialog.vue';
|
||||
import { useGlobalMessageDialog } from '../composables/useGlobalMessageDialog';
|
||||
import { useIsMobile } from '../composables/useIsMobile';
|
||||
import loginBg from '../assets/login-bg.png';
|
||||
|
||||
import {
|
||||
@@ -58,6 +59,7 @@ const { t, locale } = useI18n();
|
||||
const { showMessageDialog } = useGlobalMessageDialog();
|
||||
const router = useRouter();
|
||||
const { setThemePreference, appliedTheme } = useTheme();
|
||||
const { isMobile } = useIsMobile();
|
||||
const loginBackgroundStyle = {
|
||||
backgroundImage: `url(${loginBg})`,
|
||||
backgroundSize: 'cover',
|
||||
@@ -1461,8 +1463,18 @@ onMounted(async () => {
|
||||
</div>
|
||||
|
||||
<!-- Logged In Layout -->
|
||||
<div v-else class="grid min-h-screen gap-0 lg:grid-cols-[232px_minmax(0,1fr)] animate-fade-in">
|
||||
<aside class="lg:sticky lg:top-0 lg:h-screen">
|
||||
<div v-else class="min-h-screen animate-fade-in">
|
||||
<header v-if="isMobile" class="sticky top-0 z-30 flex items-center justify-between border-b border-slate-200 bg-white px-4 py-2.5 dark:border-slate-800 dark:bg-slate-950">
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="flex h-7 w-7 items-center justify-center rounded-lg bg-gradient-to-br from-brand-500 via-brand-600 to-purple-600 text-xs font-bold text-white shadow-sm shadow-brand-500/20">AI</div>
|
||||
<span class="text-sm font-semibold text-slate-800 dark:text-slate-100">和信AI</span>
|
||||
</div>
|
||||
<button @click="router.push('/profile')" class="flex h-9 w-9 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800" title="个人设置">
|
||||
<User class="h-5 w-5" />
|
||||
</button>
|
||||
</header>
|
||||
<div class="grid min-h-screen gap-0 lg:grid-cols-[232px_minmax(0,1fr)]">
|
||||
<aside v-if="!isMobile" class="lg:sticky lg:top-0 lg:h-screen">
|
||||
<div class="flex h-full flex-col border-r border-slate-200 bg-white px-5 py-6 shadow-sm">
|
||||
<div class="border-b border-slate-100 pb-6">
|
||||
<div class="flex items-center gap-3">
|
||||
@@ -2014,6 +2026,7 @@ onMounted(async () => {
|
||||
</div>
|
||||
</template>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Forgot Password Modal -->
|
||||
<div v-if="showForgotPasswordModal" class="fixed inset-0 bg-slate-900/40 dark:bg-slate-950/70 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-fade-in">
|
||||
|
||||
Reference in new issue
Block a user