Skip to content

[Bug] Modal set centered prop , but not centered #33021

@cwjTerrace

Description

@cwjTerrace

重现链接

https://codesandbox.io/s/zi-ding-yi-wei-zhi-antd-4-17-1-forked-722r5?file=/index.js

antd 版本

4.17.1

重现步骤

The Modal has a padding-bottom: 24px style, when I set centered props which makes it noticeably uncentered in a scene with a lot of contents.
弹窗上有一个默认属性padding-bottom: 24px,当我设置centered之后,在内容较多的场景下明显不居中
image

期望的结果是什么?

Completely centered

实际的结果是什么?

noticeably uncentered,unnecessary padding-bottom: 24px at the bottom

浏览器

No response

浏览器版本

No response

操作系统

No response

其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions