From f74c421fd852d939958a137d786c6e210b39b190 Mon Sep 17 00:00:00 2001 From: kyx236 Date: Sat, 7 Feb 2026 20:31:53 +0800 Subject: [PATCH] feat(s2a): Improve ProfileCard layout with flexbox for consistent height - Add flex flex-col and h-full to Card component for full height layout - Update CardContent with flex flex-col flex-1 for proper content distribution - Move action buttons to bottom with mt-auto pt-4 spacing - Ensures profile cards maintain consistent heights in grid layout and action buttons align to bottom --- frontend/src/pages/S2AConfig.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/S2AConfig.tsx b/frontend/src/pages/S2AConfig.tsx index cdade4b..ce7f143 100644 --- a/frontend/src/pages/S2AConfig.tsx +++ b/frontend/src/pages/S2AConfig.tsx @@ -603,14 +603,14 @@ function ProfileCard({ profile, isActive, isActivating, groupNameCache, onActiva try { parsedGroups = JSON.parse(profile.group_ids || '[]') } catch { /* ignore */ } return ( - + {/* 活动标记 */} {isActive && (
使用中
)} - + {/* 名称 + 操作 */}
@@ -647,7 +647,7 @@ function ProfileCard({ profile, isActive, isActivating, groupNameCache, onActiva )} {/* 操作按钮 */} -
+
{!isActive ? (