diff --git a/biji-qianduan/src/components/HomePage.vue b/biji-qianduan/src/components/HomePage.vue
index 8e8408f..ee4598f 100644
--- a/biji-qianduan/src/components/HomePage.vue
+++ b/biji-qianduan/src/components/HomePage.vue
@@ -1,7 +1,7 @@
-
+
+
+
@@ -321,6 +360,17 @@
+
+
+
+
+
@@ -347,7 +397,7 @@ import {
generateRegistrationCode,
updatePassword
} from '@/api/CommonApi.js'
-import { Plus, Fold, Expand, Folder, Document, Search, Edit, Delete, ArrowDown, Clock, Lock, InfoFilled, Menu, User, Back } from "@element-plus/icons-vue";
+import { Plus, Fold, Expand, Folder, Document, Search, Edit, Delete, ArrowDown, Clock, Lock, InfoFilled, Menu, User, Back, Setting, SwitchButton } from "@element-plus/icons-vue";
import { useUserStore } from '../stores/user';
import { useRouter } from 'vue-router';
import { privateNoteContent } from '../utils/privateNoteContent.js';
@@ -362,7 +412,7 @@ const groupMarkdownFiles = ref([]);
const showEditor = ref(false);
const selectedFile = ref(null);
const activeMenu = ref('all');
-const isCollapsed = ref(true);
+const isCollapsed = ref(window.innerWidth < 768);
const showCreateGroupDialog = ref(false);
const showCreateNoteDialog = ref(false);
const showRenameDialog = ref(false);
@@ -1567,3 +1617,34 @@ display: flex;
align-items: center;
gap: 10px;
}
+
+.sidebar-overlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.5);
+ z-index: 1000;
+}
+
+.fab {
+ position: fixed;
+ bottom: 80px;
+ right: 20px;
+ z-index: 100;
+ width: 56px;
+ height: 56px;
+ box-shadow: 0 4px 12px rgba(0,0,0,.15);
+}
+
+.mobile-menu-header {
+ padding: 20px;
+ text-align: center;
+ border-bottom: 1px solid #e0e0e0;
+}
+
+.mobile-menu-header .username {
+ font-weight: bold;
+ font-size: 16px;
+}
\ No newline at end of file