From f33415b751a505245922c26b820e7ead994e59fa Mon Sep 17 00:00:00 2001 From: Duy Huynh Date: Sun, 26 Jan 2025 09:36:03 +0700 Subject: [PATCH] refactor: better vertical alignment for icon and text in some setting buttons (#4615) ### What problem does this PR solve? Fixed vertical alignment issues between icons and text in API-Key and System Model Settings buttons. This improves visual consistency across the settings interface. ### Type of change - [x] Refactoring Before: Icons and text were slightly misaligned vertically Screenshot 2025-01-23 at 20 22 46 After: Icons and text are now properly centered with consistent spacing Screenshot 2025-01-23 at 20 23 02 --- .../components/setting-title/index.tsx | 5 ++- .../user-setting/setting-model/index.tsx | 32 +++++++++++-------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/web/src/pages/user-setting/components/setting-title/index.tsx b/web/src/pages/user-setting/components/setting-title/index.tsx index c3066d024..3fd4f424a 100644 --- a/web/src/pages/user-setting/components/setting-title/index.tsx +++ b/web/src/pages/user-setting/components/setting-title/index.tsx @@ -27,7 +27,10 @@ const SettingTitle = ({ {showRightButton && ( )} diff --git a/web/src/pages/user-setting/setting-model/index.tsx b/web/src/pages/user-setting/setting-model/index.tsx index 66b8f9b78..017704566 100644 --- a/web/src/pages/user-setting/setting-model/index.tsx +++ b/web/src/pages/user-setting/setting-model/index.tsx @@ -92,27 +92,31 @@ const ModelCard = ({ item, clickApiKey }: IModelCardProps) => {