mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +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"
|
class="ant-row"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="ant-col"
|
class="ant-col ant-col-24"
|
||||||
>
|
>
|
||||||
col
|
col
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,7 +23,7 @@ import { Row, Col } from 'antd';
|
|||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<div>
|
<div>
|
||||||
<Row>
|
<Row>
|
||||||
<Col>col</Col>
|
<Col span={24}>col</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col span={12}>col-12</Col>
|
<Col span={12}>col-12</Col>
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
.@{ant-prefix}-col {
|
.@{ant-prefix}-col {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 1 auto;
|
flex: 0 1 auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
// Prevent columns from collapsing when empty
|
// Prevent columns from collapsing when empty
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
|
Loading…
Reference in New Issue
Block a user