From 729ad9dfa18726fd9975e00fe35f0cee11d4cea1 Mon Sep 17 00:00:00 2001 From: Amumu Date: Tue, 27 Oct 2020 23:58:38 +0800 Subject: [PATCH] fix: Fix the width of the step content in the horizontal direction (#27406) * chore: code style * Revert "feat: remove content max-width on dot-step (#24907)" This reverts commit 0879bd5df3a948fc61d2b549da0ec1a4960aab33. * chore: revert code style --- components/steps/style/progress-dot.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/steps/style/progress-dot.less b/components/steps/style/progress-dot.less index 534a2ef5aa..c83b2b9857 100644 --- a/components/steps/style/progress-dot.less +++ b/components/steps/style/progress-dot.less @@ -47,6 +47,9 @@ } } } + &-content { + width: @steps-desciption-max-width; + } &-process .@{steps-prefix-cls}-item-icon { position: relative; top: -1px; @@ -73,6 +76,9 @@ .@{steps-prefix-cls}-item:first-child .@{steps-prefix-cls}-icon-dot { left: 0; } + .@{steps-prefix-cls}-item-content { + width: inherit; + } .@{steps-prefix-cls}-item-process .@{steps-prefix-cls}-icon-dot { left: -2px; }