From 855d9e0e309a3e92185e05b2cfbae425f745a044 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Sun, 28 Jun 2026 16:32:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(client):=20=E8=BF=9E=E6=8E=A5=E9=A1=B5?= =?UTF-8?q?=E6=A1=8C=E9=9D=A2=E8=8A=82=E7=82=B9=E8=83=B6=E5=9B=8A(=5FNodeP?= =?UTF-8?q?ill)=E5=8A=A0=E5=9C=B0=E5=9F=9F=E5=9B=BD=E6=97=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 桌面连接页「已连接」下的节点框是 _NodePill,此前只有文字「节点名·延时」+ 智能选择 zap,无国旗。在地域前加 CountryCode(size 20)国旗(无效码回退码块), 智能选择时国旗 + zap 并存。手机/平板的 _CurrentNodeCard 本已有旗。 桌面连接页非 golden 覆盖(含旋转动画),无 golden 变更。 Co-Authored-By: Claude Opus 4.8 --- client/lib/screens/connect_page.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/lib/screens/connect_page.dart b/client/lib/screens/connect_page.dart index 90bbe16..5100214 100644 --- a/client/lib/screens/connect_page.dart +++ b/client/lib/screens/connect_page.dart @@ -340,14 +340,17 @@ class _NodePill extends StatelessWidget { ? '${t.smartSelect} · ${node.localizedName(t.lang)} · $pingLabel' : '${node.localizedName(t.lang)} · $pingLabel'; return Container( - padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 6), + padding: const EdgeInsets.only(left: 6, right: 14, top: 5, bottom: 5), decoration: BoxDecoration( color: c.surface, border: Border.all(color: c.border), borderRadius: BorderRadius.circular(PangolinRadius.full), ), child: Row(mainAxisSize: MainAxisSize.min, children: [ - if (smart) ...[Icon(PangolinIcons.zap, size: 13, color: c.accent), const SizedBox(width: 7)], + // 地域国旗(无效码回退码块);智能选择再叠一个 zap 标识。 + CountryCode(code: node.code, size: 20), + const SizedBox(width: 8), + if (smart) ...[Icon(PangolinIcons.zap, size: 13, color: c.accent), const SizedBox(width: 6)], Text(label, style: PangolinText.caption.copyWith(color: c.fg2, fontSize: 12.5, fontWeight: FontWeight.w600)), ]),