mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
fix firefox can't set height smaller than content on flex item (#12295)
https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox/28639686#28639686
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
flex-direction: column;
|
||||
flex: auto;
|
||||
background: @layout-body-background;
|
||||
/* fix firefox can't set height smaller than content on flex item */
|
||||
min-height: 0;
|
||||
|
||||
&,
|
||||
* {
|
||||
@@ -43,6 +45,8 @@
|
||||
|
||||
&-content {
|
||||
flex: auto;
|
||||
/* fix firefox can't set height smaller than content on flex item */
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
&-sider {
|
||||
|
||||
Reference in New Issue
Block a user