From 24d1dbb5f3edf1d715a9213faeaf5c640c840c9d Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 17 Feb 2026 18:56:31 +0800 Subject: [PATCH] feat: enhance BaseFolderItemSelector dialog for mobile responsiveness and improved styling --- .../folder/BaseFolderItemSelector.vue | 50 ++++++++++++++++--- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/dashboard/src/components/folder/BaseFolderItemSelector.vue b/dashboard/src/components/folder/BaseFolderItemSelector.vue index 4b4b4f1c4..645706ddf 100644 --- a/dashboard/src/components/folder/BaseFolderItemSelector.vue +++ b/dashboard/src/components/folder/BaseFolderItemSelector.vue @@ -14,8 +14,13 @@ - - + + mdi-account-circle {{ labels.dialogTitle || '选择项目' }} @@ -23,7 +28,7 @@ - +
@@ -146,7 +151,7 @@
- + {{ labels.createButton || '新建' }} @@ -406,6 +411,12 @@ export default defineComponent({ overflow: hidden; } +.selector-dialog-content { + height: 600px; + max-height: 80vh; + overflow: hidden; +} + .dialog-title { font-size: 1.25rem; font-weight: 500; @@ -518,21 +529,44 @@ export default defineComponent({ } @media (max-width: 600px) { + .selector-dialog-card-mobile { + border-radius: 0; + } + + .selector-dialog-content { + height: calc(100vh - 132px); + max-height: none; + } + + .dialog-title { + font-size: 1.05rem; + padding: 12px 16px !important; + } + + .selector-dialog-actions { + padding: 12px 16px !important; + gap: 8px; + } + + .selector-dialog-actions .v-btn { + min-width: 0; + } + .selector-layout { flex-direction: column; - height: auto; - max-height: 500px; + height: 100%; + max-height: none; } .folder-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)); - max-height: 150px; + max-height: 35vh; } .items-list { - max-height: 300px; + max-height: none; } }