mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
fix: popover width on the screen side (#41953)
* chore: fix popover width for edge case * chore: fix max-width
This commit is contained in:
parent
9b59ec8761
commit
ae3e130829
@ -15,6 +15,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: @zindex-popover;
|
z-index: @zindex-popover;
|
||||||
|
max-width: 100%;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -85,6 +86,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-inner-content {
|
&-inner-content {
|
||||||
|
width: max-content;
|
||||||
|
max-width: 100%;
|
||||||
padding: @padding-sm @popover-padding-horizontal;
|
padding: @padding-sm @popover-padding-horizontal;
|
||||||
color: @popover-color;
|
color: @popover-color;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user