From bfd99955832eb8829a8c13d9d21bb82ca2a30a82 Mon Sep 17 00:00:00 2001 From: inottn Date: Fri, 5 May 2023 21:33:14 +0800 Subject: [PATCH] fix(Steps): fix the style that occurs when there is only one step (#11822) --- packages/vant/src/step/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant/src/step/index.less b/packages/vant/src/step/index.less index cb55e7e83..680561de8 100644 --- a/packages/vant/src/step/index.less +++ b/packages/vant/src/step/index.less @@ -42,7 +42,7 @@ } } - &:last-child { + &:last-child:not(:first-child) { position: absolute; right: 1px; width: auto;