From f274bc97db85e5e07396ee2c16b154e7ef65739b Mon Sep 17 00:00:00 2001 From: kooriookami <38392315+kooriookami@users.noreply.github.com> Date: Fri, 27 Aug 2021 14:39:53 +0800 Subject: [PATCH] style: update calc style (#3090) fix #3073 --- packages/theme-chalk/src/switch.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/theme-chalk/src/switch.scss b/packages/theme-chalk/src/switch.scss index 726791e6d1..f11f2c7350 100644 --- a/packages/theme-chalk/src/switch.scss +++ b/packages/theme-chalk/src/switch.scss @@ -96,7 +96,7 @@ background-color: var(--el-switch-on-color); .#{$namespace}-switch__action { left: 100%; - margin-left: calc(0px - var(--el-switch-button-size) - 1px); + margin-left: calc(-1px - var(--el-switch-button-size)); color: var(--el-switch-on-color); } }