From 4e076ed6280e431b506f616e96a93e7814e1b4fe Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 17 Sep 2026 13:04:27 +0800 Subject: [PATCH] =?UTF-8?q?style(worker):=20=E5=AF=84=E5=8D=96=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=20chips=20=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E6=97=B6=E5=9B=9B=E8=A7=92=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=9C=86=E8=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 苏尔南区服现在只有「互通」一个选项,chips 的 :first-child/::last-child 圆角规则同时命中、last-child 在后覆盖成"左方右圆";补 :only-child 规则让唯一选项四个角都是 8px 圆角,与多选项时的观感一致 --- apps/frontend/src/styles/worker.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/frontend/src/styles/worker.css b/apps/frontend/src/styles/worker.css index 54472d85..55d1207f 100644 --- a/apps/frontend/src/styles/worker.css +++ b/apps/frontend/src/styles/worker.css @@ -4310,6 +4310,12 @@ body { border-radius: 0 8px 8px 0; } +/* 只有一个选项时(如苏尔南区服的「互通」):first/last 两条规则同时命中, + last-child 在后会把它覆盖成"左方右圆",这里统一四个角都是圆的 */ +.worker-consignment-chips .ant-radio-button-wrapper:only-child { + border-radius: 8px; +} + .worker-consignment-chips .ant-radio-button-wrapper-checked { background: #ff6a00; border-color: #ff6a00;