feat(mobile): 优化移动端搜索框样式并调整默认折叠状态- 移动端搜索框样式调整,增加 large 尺寸并修改图标位置

- 默认将左侧目录设置为折叠状态
-优化移动视图下的样式
This commit is contained in:
2025-08-08 16:44:01 +08:00
parent 866b997494
commit 924ede9e47

View File

@@ -134,13 +134,12 @@
<el-input <el-input
v-model="searchKeyword" v-model="searchKeyword"
placeholder="搜索笔记标题" placeholder="搜索笔记标题"
class="search-input" class="mobile-search-input"
@keyup.enter="handleSearch" @keyup.enter="handleSearch"
size="large"
> >
<template #append> <template #prefix>
<el-button @click="handleSearch"> <el-icon><Search /></el-icon>
<el-icon><Search /></el-icon>
</el-button>
</template> </template>
</el-input> </el-input>
</div> </div>
@@ -353,7 +352,7 @@ const groupMarkdownFiles = ref([]);
const showEditor = ref(false); const showEditor = ref(false);
const selectedFile = ref(null); const selectedFile = ref(null);
const activeMenu = ref('all'); const activeMenu = ref('all');
const isCollapsed = ref(false); const isCollapsed = ref(true);
const showCreateGroupDialog = ref(false); const showCreateGroupDialog = ref(false);
const showCreateNoteDialog = ref(false); const showCreateNoteDialog = ref(false);
const showRenameDialog = ref(false); const showRenameDialog = ref(false);
@@ -1269,19 +1268,20 @@ const resetUpdatePasswordForm = () => {
white-space: pre-wrap !important; white-space: pre-wrap !important;
display: block; display: block;
} }
</style> <style scoped>
.mobile-title { .mobile-title {
cursor: pointer; cursor: pointer;
} }
.mobile-search-container { .mobile-search-container {
.mobile-search-container {
margin-bottom: 1.5rem;
}
padding: 0 1.5rem; padding: 0 1.5rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
<style scoped>
:deep(.mobile-search-input .el-input__wrapper) {
border-radius: 9999px !important;
}
/* 整体布局 */ /* 整体布局 */
.home-page { .home-page {
height: 100vh; height: 100vh;