Skip to content

Commit cc495be

Browse files
committed
fix: update drawer to latest
this update allows drawer to support native scrolling, with touch scrolling in mobile device
1 parent 7b8d306 commit cc495be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pswui/components/Drawer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const drawerContentColors = {
146146
};
147147

148148
const [drawerContentVariant, resolveDrawerContentVariantProps] = vcn({
149-
base: `fixed ${drawerContentColors.background} ${drawerContentColors.border} transition-all p-4 flex flex-col justify-between gap-8`,
149+
base: `fixed ${drawerContentColors.background} ${drawerContentColors.border} transition-all p-4 flex flex-col justify-between gap-8 overflow-auto`,
150150
variants: {
151151
position: {
152152
top: "top-0 inset-x-0 w-full max-w-screen rounded-t-lg border-b-2",
@@ -155,7 +155,7 @@ const [drawerContentVariant, resolveDrawerContentVariantProps] = vcn({
155155
right: "right-0 inset-y-0 h-screen rounded-r-lg border-l-2",
156156
},
157157
opened: {
158-
true: "touch-none",
158+
true: "",
159159
false:
160160
"[&.top-0]:-translate-y-full [&.bottom-0]:translate-y-full [&.left-0]:-translate-x-full [&.right-0]:translate-x-full",
161161
},

0 commit comments

Comments
 (0)