mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-27 03:09:45 +08:00
优化文件浏览器样式,增加文件列表大小限制,调整文件导航器内边距
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user