From 0716f4cd65c4e419783c55a71cab6e99452a7eb7 Mon Sep 17 00:00:00 2001 From: jzh <1587315093@qq.com> Date: Wed, 1 Nov 2023 14:15:04 +0800 Subject: [PATCH] fix: for inconsistent switch width changes --- 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); } }