Browse Source
fix: popover width on the screen side (#41953)
* chore: fix popover width for edge case
* chore: fix max-width
pull/42128/head
二货爱吃白萝卜
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
components/popover/style/index.less
|
|
@ -15,6 +15,7 @@ |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
z-index: @zindex-popover; |
|
|
|
max-width: 100%; |
|
|
|
font-weight: normal; |
|
|
|
white-space: normal; |
|
|
|
text-align: left; |
|
|
@ -85,6 +86,8 @@ |
|
|
|
} |
|
|
|
|
|
|
|
&-inner-content { |
|
|
|
width: max-content; |
|
|
|
max-width: 100%; |
|
|
|
padding: @padding-sm @popover-padding-horizontal; |
|
|
|
color: @popover-color; |
|
|
|
} |
|
|
|