mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix(Drawer): add max width to prevent width overflow for small screens (#42914)
* fix(Drawer): add max width to prevent width overflow for small screens * feat(Drawer): content max width `vw` instead of percent Co-authored-by: afc163 <afc163@gmail.com> --------- Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
fddd84c0bd
commit
486e326a07
@ -79,6 +79,7 @@ const genDrawerStyle: GenerateStyle<DrawerToken> = (token: DrawerToken) => {
|
||||
[wrapperCls]: {
|
||||
position: 'absolute',
|
||||
zIndex: zIndexPopup,
|
||||
maxWidth: '100vw',
|
||||
transition: `all ${motionDurationSlow}`,
|
||||
|
||||
'&-hidden': {
|
||||
|
Loading…
Reference in New Issue
Block a user