From 671ea151194c05856c90ad5a70791ec005268feb Mon Sep 17 00:00:00 2001 From: Wing <1587315093@qq.com> Date: Wed, 1 Nov 2023 14:46:37 +0800 Subject: [PATCH] fix: for inconsistent switch width changes (#6421) --- src/components/switch/switch.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/switch/switch.less b/src/components/switch/switch.less index 7c5a7dc10f..a3451f0288 100644 --- a/src/components/switch/switch.less +++ b/src/components/switch/switch.less @@ -72,7 +72,7 @@ display: flex; justify-content: center; align-items: center; - margin: 0 8px 0 calc(var(--height) - var(--border-width) + 4px); + margin: 0 8px 0 calc(var(--height) - var(--border-width) + 5px); height: 100%; color: var(--adm-color-weak); transition: margin 200ms; @@ -92,7 +92,7 @@ } .@{class-prefix-switch}-inner { - margin: 0 calc(var(--height) - var(--border-width) + 5px) 0 10px; + margin: 0 calc(var(--height) - var(--border-width) + 5px) 0 8px; color: var(--adm-color-text-light-solid); } }