Browse Source

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>
pull/42952/head
Amir M. Mohamadi 1 year ago
committed by GitHub
parent
commit
486e326a07
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/drawer/style/index.ts

1
components/drawer/style/index.ts

@ -79,6 +79,7 @@ const genDrawerStyle: GenerateStyle<DrawerToken> = (token: DrawerToken) => {
[wrapperCls]: {
position: 'absolute',
zIndex: zIndexPopup,
maxWidth: '100vw',
transition: `all ${motionDurationSlow}`,
'&-hidden': {

Loading…
Cancel
Save