mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
fix: Col default width (#19983)
* fix: Col default width * update snapshots
This commit is contained in:
parent
43574443d5
commit
65312870d4
@ -6,7 +6,7 @@ exports[`renders ./components/grid/demo/basic.md correctly 1`] = `
|
||||
class="ant-row"
|
||||
>
|
||||
<div
|
||||
class="ant-col"
|
||||
class="ant-col ant-col-24"
|
||||
>
|
||||
col
|
||||
</div>
|
||||
|
@ -23,7 +23,7 @@ import { Row, Col } from 'antd';
|
||||
ReactDOM.render(
|
||||
<div>
|
||||
<Row>
|
||||
<Col>col</Col>
|
||||
<Col span={24}>col</Col>
|
||||
</Row>
|
||||
<Row>
|
||||
<Col span={12}>col-12</Col>
|
||||
|
@ -55,7 +55,7 @@
|
||||
|
||||
.@{ant-prefix}-col {
|
||||
position: relative;
|
||||
flex: 1 auto;
|
||||
flex: 0 1 auto;
|
||||
max-width: 100%;
|
||||
// Prevent columns from collapsing when empty
|
||||
min-height: 1px;
|
||||
|
Loading…
Reference in New Issue
Block a user