From ebfe9fa19d35db32b89b65c58507457d4d38abc1 Mon Sep 17 00:00:00 2001 From: lintsinghua Date: Wed, 10 Dec 2025 19:22:54 +0800 Subject: [PATCH] style(audit): simplify file selection dialog header layout - Refactor DialogTitle structure to use flexbox gap instead of nested flex containers - Consolidate icon, title, and badge into single flex row with improved spacing - Add ml-auto to badge for automatic right alignment instead of justify-between - Remove unnecessary nested div wrapper around icon and title text - Add flex-shrink-0 to icon to prevent scaling in flex layout - Add pr-8 padding to DialogTitle for better spacing with close button - Improve code readability and reduce DOM nesting complexity --- .../components/audit/FileSelectionDialog.tsx | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/audit/FileSelectionDialog.tsx b/frontend/src/components/audit/FileSelectionDialog.tsx index e156379..bf04ff6 100644 --- a/frontend/src/components/audit/FileSelectionDialog.tsx +++ b/frontend/src/components/audit/FileSelectionDialog.tsx @@ -454,21 +454,17 @@ export default function FileSelectionDialog({ - -
- - 选择要审计的文件 -
-
- {excludePatterns && excludePatterns.length > 0 && ( - - 已排除 {excludePatterns.length} 种模式 - - )} -
+ + + 选择要审计的文件 + {excludePatterns && excludePatterns.length > 0 && ( + + 已排除 {excludePatterns.length} 种模式 + + )}