style: fix Popover width in rtl mode (#39311)

close #39195
This commit is contained in:
afc163 2022-12-06 23:29:38 +08:00 committed by GitHub
parent df41ff73a8
commit a8dd587971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,11 @@ const genBaseStyle: GenerateStyle<PopoverToken> = (token) => {
...resetComponent(token),
position: 'absolute',
top: 0,
insetInlineStart: 0,
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
left: {
_skip_check_: true,
value: 0,
},
zIndex: zIndexPopup,
fontWeight: 'normal',
whiteSpace: 'normal',