Fix: connection detail not display

This commit is contained in:
Dreamacro 2023-02-22 15:39:17 +08:00
parent 7b88e014f0
commit 15fb59681f

View File

@ -21,11 +21,15 @@ export function Drawer (props: DrawerProps) {
return () => { document.body.removeChild(current) }
}, [])
const cardStyle = 'absolute h-full right-0 transition-transform transform translate-x-full duration-100 pointer-events-auto'
const cardStyle = 'absolute h-full right-0 transition-transform transform duration-100 pointer-events-auto'
const container = (
<div className={classnames(props.className, 'z-9999 pointer-events-none absolute inset-0')}>
<Card className={classnames(cardStyle, props.bodyClassName, { 'translate-x-0': props.visible })} style={{ width: props.width ?? 400 }}>{props.children}</Card>
<Card className={classnames(
cardStyle,
props.bodyClassName,
{ 'translate-x-0': props.visible, 'translate-x-full': !props.visible },
)} style={{ width: props.width ?? 400 }}>{props.children}</Card>
</div>
)