♻️ refactor: upgrade styles for Drawer (#7141)

This commit is contained in:
Arvin Xu
2025-03-25 17:18:45 +08:00
committed by GitHub
parent b245ce2653
commit bcbc8fc079
@@ -53,16 +53,7 @@ const Header = memo<HeaderProps>(({ children, getContainer, title }) => {
}
/>
<Drawer
bodyStyle={{
display: 'flex',
flexDirection: 'column',
gap: 20,
justifyContent: 'space-between',
padding: 16,
}}
getContainer={getContainer}
headerStyle={{ display: 'none' }}
maskStyle={{ background: 'transparent' }}
onClick={() => setOpen(false)}
onClose={() => setOpen(false)}
open={open}
@@ -72,6 +63,17 @@ const Header = memo<HeaderProps>(({ children, getContainer, title }) => {
background: theme.colorBgContainer,
borderRight: `1px solid ${theme.colorSplit}`,
}}
styles={{
body: {
display: 'flex',
flexDirection: 'column',
gap: 20,
justifyContent: 'space-between',
padding: 16,
},
header: { display: 'none' },
mask: { background: 'transparent' },
}}
width={260}
zIndex={10}
>