Skip to content

Label栅格样式小屏时被覆盖,显示宽度100% #1459

@ideshun

Description

@ideshun
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.6

Environment

Windows 10 1909、Chrome 78.0.3904.108、Vue 3.11.0

Reproduction link

https://bd9ok.csb.app/

Steps to reproduce

Form Label 组件,horizontal模式,小屏状态显示宽度100%。

What is expected?

horizontal模式左右显示,而不是label和input各占一行。

What is actually happening?

.ant-form-item-label, .ant-form-item-control-wrapper 将 .ant-col-18 样式覆盖了。
@media (max-width: 575px)
.ant-form-item-label, .ant-form-item-control-wrapper {
display: block;
width: 100%;
}

.ant-col-18 {
display: block;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 75%;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions