优化文件浏览器样式,增加文件列表大小限制,调整文件导航器内边距

This commit is contained in:
jxxghp
2025-03-31 12:02:15 +08:00
parent f9f45d9e32
commit 21dbaf6db5
3 changed files with 13 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ const inProps = defineProps({
required: true,
},
sort: String,
listStyle: String,
})
// 对外事件
@@ -598,7 +599,7 @@ onMounted(() => {
<!-- 目录和文件列表 -->
<VCardText v-else-if="dirs.length || files.length" class="p-0">
<VList subheader>
<VVirtualScroll :items="[...dirs, ...files]">
<VVirtualScroll :items="[...dirs, ...files]" :style="listStyle">
<template #default="{ item }">
<VHover>
<template #default="hover">

View File

@@ -420,7 +420,6 @@ function getIndentLevel(path: string, ancestorPath: string) {
.tree-item {
display: flex;
align-items: center;
padding: 6px 16px 6px 8px;
cursor: pointer;
transition: background-color 0.2s ease;
min-width: 100%;
@@ -444,6 +443,7 @@ function getIndentLevel(path: string, ancestorPath: string) {
justify-content: center;
margin-right: 4px;
flex-shrink: 0;
padding: 6px 0px 6px 12px;
}
.folder-content {
@@ -454,6 +454,7 @@ function getIndentLevel(path: string, ancestorPath: string) {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 6px 16px 6px 8px;
}
.root-item {