侧边栏样式调整

This commit is contained in:
2026-07-03 11:50:26 +08:00
parent 891cb7df54
commit a37bb0a894
3 changed files with 4 additions and 153 deletions

View File

@@ -44,7 +44,7 @@ const rootEntry = computed<DirEntry | null>(() => {
});
// ---- sidebar view mode ----
type ViewMode = "folder" | "search" | "outline";
type ViewMode = "folder" | "search" | "outline" | "setting";
const activeView = ref<ViewMode>("folder");
const expanded = ref(true);
@@ -124,7 +124,7 @@ const showSettings = ref(false);
<!-- ===== Settings ===== -->
<button
class="p-2 rounded-md transition-colors mt-auto"
:class="activeView === 'outline' ? 'text-[#bf6a3b] bg-[#ede8de]' : 'text-[#b8b3a8] hover:text-[#5c574e] hover:bg-[#ede8de]'"
:class="activeView === 'setting' ? 'text-[#bf6a3b] bg-[#ede8de]' : 'text-[#b8b3a8] hover:text-[#5c574e] hover:bg-[#ede8de]'"
title="设置"
@click="showSettings = true"
>