From bac823a65873ea9acd589abe9fa1d6002e976be8 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 26 Apr 2025 00:33:22 +0800 Subject: [PATCH] refactor(desktop): enhance UI components and form layouts - Updated DropZone component to include a cursor button style for better user interaction. - Refactored DiscoverForm to improve layout and styling, including the addition of a SegmentGroup for target selection. - Enhanced form styling across various components for a more cohesive appearance, including rounded borders and shadow effects. - Improved accessibility and visual hierarchy in user forms and import forms. Signed-off-by: Innei --- .../renderer/src/components/ui/drop-zone.tsx | 2 +- .../renderer/src/modules/discover/form.tsx | 143 ++++++++---------- .../renderer/src/modules/discover/import.tsx | 9 +- .../src/modules/discover/inbox-list-form.tsx | 2 +- .../src/modules/discover/transform-form.tsx | 2 +- .../src/modules/discover/user-form.tsx | 2 +- packages/components/src/ui/segment/index.tsx | 4 +- 7 files changed, 79 insertions(+), 85 deletions(-) diff --git a/apps/desktop/src/renderer/src/components/ui/drop-zone.tsx b/apps/desktop/src/renderer/src/components/ui/drop-zone.tsx index e0d8a4602..4b1ad9413 100644 --- a/apps/desktop/src/renderer/src/components/ui/drop-zone.tsx +++ b/apps/desktop/src/renderer/src/components/ui/drop-zone.tsx @@ -59,7 +59,7 @@ export const DropZone = ({ return (