Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Steps progressDot 无法放置在小容器中 #32805

Open
RaoHai opened this issue Nov 10, 2021 · 7 comments
Open

[Bug] Steps progressDot 无法放置在小容器中 #32805

RaoHai opened this issue Nov 10, 2021 · 7 comments
Labels
improvement improve some features Inactive

Comments

@RaoHai
Copy link
Contributor

RaoHai commented Nov 10, 2021

重现链接

https://codesandbox.io/s/antd-reproduction-template-forked-clfri?file=/index.js:533-544

antd 版本

4.16.3

重现步骤

<div style={{ width: 200, border: "1px solid blue", margin: 20 }}>
      <Steps progressDot size="small">
        <Steps.Step>1</Steps.Step>
        <Steps.Step>2</Steps.Step>
        <Steps.Step>3</Steps.Step>
        <Steps.Step>4</Steps.Step>
      </Steps>
    </div>

期望的结果是什么?

能正确容纳在小容器中

实际的结果是什么?

image

浏览器

No response

浏览器版本

No response

操作系统

No response

其他

@zombieJ
Copy link
Member

zombieJ commented Nov 10, 2021

感觉可以用 flex 重搞一下结构

@zombieJ
Copy link
Member

zombieJ commented Nov 10, 2021

@zombieJ zombieJ added the improvement improve some features label Nov 10, 2021
@zombieJ
Copy link
Member

zombieJ commented Nov 10, 2021

看起来每个 Step 固定宽度是 By Design,加了一个 improvement 标签先

@afc163
Copy link
Member

afc163 commented Nov 12, 2021

Steps 本身也有类似问题。

@zombieJ
Copy link
Member

zombieJ commented Nov 12, 2021

patch: https://codesandbox.io/s/blissful-gagarin-7gsrv?file=/src/styles.css

和设计师沟通了一下,下一版 Steps 会一些些不一样。还没定稿,先不重构结构。

@afc163
Copy link
Member

afc163 commented Nov 15, 2021

@afc163
Copy link
Member

afc163 commented Nov 16, 2021

可以把样式里的

@steps-description-max-width: 140px;
这个完全改成 JS 控制。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improve some features Inactive
Projects
None yet
Development

No branches or pull requests

3 participants