From 4b9867c6dc9bb1569f40d8d0a55659abee5951f5 Mon Sep 17 00:00:00 2001
From: duanyongcheng <1171998654@qq.com>
Date: Tue, 13 Jan 2026 21:03:02 +0800
Subject: [PATCH 1/3] =?UTF-8?q?fix(ProfileCard):=20=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E6=BF=80=E6=B4=BB=E6=8C=89=E9=92=AE=E5=8F=8D=E9=A6=88=E4=B8=8E?=
=?UTF-8?q?=E5=BE=BD=E7=AB=A0=E5=B8=83=E5=B1=80=20Optimize=20activate=20bu?=
=?UTF-8?q?tton=20feedback=20and=20badge=20layout?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
为徽章添加不换行样式,防止文本溢出
Add whitespace-nowrap style to badges to prevent text overflow
代理运行时显示内联提示而非悬浮提示
Show inline alert instead of tooltip when proxy is running
优化禁用菜单项的视觉样式
Optimize visual style of disabled menu items
---
.../components/ProfileCard.tsx | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/pages/ProfileManagementPage/components/ProfileCard.tsx b/src/pages/ProfileManagementPage/components/ProfileCard.tsx
index 73fdc25..0ace284 100644
--- a/src/pages/ProfileManagementPage/components/ProfileCard.tsx
+++ b/src/pages/ProfileManagementPage/components/ProfileCard.tsx
@@ -3,7 +3,7 @@
*/
import { useState } from 'react';
-import { Check, MoreVertical, Pencil, Power, Trash2, Tag } from 'lucide-react';
+import { Check, MoreVertical, Pencil, Power, Trash2, Tag, AlertCircle } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import {
@@ -99,12 +99,12 @@ export function ProfileCard({
{profile.name}
{profile.is_active && !proxyRunning && (
-
+
激活中
)}
-
+
{sourceInfo.text}
@@ -124,13 +124,19 @@ export function ProfileCard({
{(!profile.is_active || proxyRunning) && (
<>
激活
+ {proxyRunning && (
+
+ )}
>
)}
From 84c8e37963c16f6d007d36cc7ea4d7c667c25639 Mon Sep 17 00:00:00 2001
From: duanyongcheng <1171998654@qq.com>
Date: Tue, 13 Jan 2026 21:05:40 +0800
Subject: [PATCH 2/3] =?UTF-8?q?style(ActiveProfileCard):=20=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E5=B7=A5=E5=85=B7=E5=AE=9E=E4=BE=8B=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E5=99=A8=E7=9A=84=E6=A0=B7=E5=BC=8F=E6=98=BE=E7=A4=BA=20Optimi?=
=?UTF-8?q?ze=20tool=20instance=20selector=20styles?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
将固定宽度改为最小宽度以增强布局灵活性
Change fixed width to minimum width for layout flexibility
修复选择器内容被截断的问题,允许文字完整显示
Fix content truncation issue by allowing full text display
优化内部元素的弹性布局对齐和间距
Optimize flex layout alignment and spacing for internal elements
---
.../ProfileManagementPage/components/ActiveProfileCard.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pages/ProfileManagementPage/components/ActiveProfileCard.tsx b/src/pages/ProfileManagementPage/components/ActiveProfileCard.tsx
index 5aa4b89..01d5f48 100644
--- a/src/pages/ProfileManagementPage/components/ActiveProfileCard.tsx
+++ b/src/pages/ProfileManagementPage/components/ActiveProfileCard.tsx
@@ -236,7 +236,7 @@ export function ActiveProfileCard({ group, proxyRunning }: ActiveProfileCardProp
onValueChange={handleInstanceChange}
disabled={toolInstances.length === 0}
>
-
+
From 1a922823cd80c667e2a02889a5efb7fd39a55e41 Mon Sep 17 00:00:00 2001
From: duanyongcheng <1171998654@qq.com>
Date: Tue, 13 Jan 2026 21:12:56 +0800
Subject: [PATCH 3/3] =?UTF-8?q?style(ProfileCard):=20=E4=BC=98=E5=8C=96=20?=
=?UTF-8?q?ProfileCard=20=E7=BB=84=E4=BB=B6=E4=B8=AD=20Badge=20=E7=9A=84?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=20Optimize=20code=20format?=
=?UTF-8?q?ting=20of=20Badge=20in=20ProfileCard=20component?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
将 Badge 组件的属性调整为多行排列以提高可读性
Reformat Badge component props to multiple lines for better readability
---
src/pages/ProfileManagementPage/components/ProfileCard.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/pages/ProfileManagementPage/components/ProfileCard.tsx b/src/pages/ProfileManagementPage/components/ProfileCard.tsx
index 0ace284..32a7cd1 100644
--- a/src/pages/ProfileManagementPage/components/ProfileCard.tsx
+++ b/src/pages/ProfileManagementPage/components/ProfileCard.tsx
@@ -104,7 +104,11 @@ export function ProfileCard({
激活中
)}
-
+
{sourceInfo.text}