Skip to content

Commit dac7c38

Browse files
committed
fix: vertical motion and overflow handling in DrawerPopup
1 parent e16a142 commit dac7c38

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/examples/assets/motion.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@
9292
transform: translateY(-100%);
9393

9494
&-active {
95-
transform: translateX(0);
95+
transform: translateY(0);
9696
}
9797
}
9898

9999
&-leave {
100-
transform: translateX(0);
100+
transform: translateY(0);
101101

102102
&-active {
103103
transform: translateY(-100%) !important;
@@ -113,12 +113,12 @@
113113
transform: translateY(100%);
114114

115115
&-active {
116-
transform: translateX(0);
116+
transform: translateY(0);
117117
}
118118
}
119119

120120
&-leave {
121-
transform: translateX(0);
121+
transform: translateY(0);
122122

123123
&-active {
124124
transform: translateY(100%) !important;

src/DrawerPopup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ const DrawerPopup: React.ForwardRefRenderFunction<
356356
}
357357

358358
if (resizable) {
359-
style.overflow = 'none';
359+
style.overflow = 'visible';
360360
} else {
361-
style.overflow = 'auto';
361+
style.overflow = 'hidden';
362362
}
363363

364364
return style;

0 commit comments

Comments
 (0)