Skip to content

Commit 043326b

Browse files
committed
chore: adjust style
1 parent ab6fdf6 commit 043326b

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

src/DrawerPopup.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -347,19 +347,6 @@ const DrawerPopup: React.ForwardRefRenderFunction<
347347
onKeyUp,
348348
};
349349

350-
const dynamicWrapperStyle = React.useMemo(() => {
351-
const style: React.CSSProperties = { ...wrapperStyle };
352-
353-
if (resizable) {
354-
// Allow dragger to be visible outside wrapper bounds
355-
style.overflow = 'hidden';
356-
} else {
357-
style.overflow = 'hidden';
358-
}
359-
360-
return style;
361-
}, [wrapperStyle, resizable]);
362-
363350
// =========================== Render ==========================
364351
// >>>>> Panel
365352
const panelNode: React.ReactNode = (
@@ -396,13 +383,14 @@ const DrawerPopup: React.ForwardRefRenderFunction<
396383
ref={wrapperRef}
397384
className={classNames(
398385
`${prefixCls}-content-wrapper`,
386+
isDragging && `${prefixCls}-content-wrapper-dragging`,
399387
drawerClassNames?.wrapper,
400388
!isDragging && motionClassName,
401389
)}
402390
style={{
403391
...motionStyle,
392+
...wrapperStyle,
404393
...styles?.wrapper,
405-
...dynamicWrapperStyle,
406394
}}
407395
{...pickAttrs(props, { data: true })}
408396
>

0 commit comments

Comments
 (0)