Skip to content

Commit 325bbe3

Browse files
committed
fix: bottom sheet sizing on large screens
1 parent 3af19c7 commit 325bbe3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/ui/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "material-web-components-react",
33
"version": "0.3.7",
44
"author": "Grayhat Team",
5+
"type": "module",
56
"keywords": [
67
"react",
78
"react-component",

packages/ui/src/sheet/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const BottomSheet: React.FC<BottomSheetProps> = ({
3737
}`}
3838
/>
3939
<Drawer.Content
40-
className={`bg-zinc-100 flex flex-col overflow-hidden !rounded-t-[2rem] mt-24 fixed bottom-0 m-auto left-0 right-0 sm:max-w-[640px] w-full sm:px-14 px-6`}
40+
className={`fixed inset-x-0 bottom-0 m-auto mt-24 flex w-full flex-col overflow-hidden !rounded-t-[2rem] bg-zinc-100 px-6 sm:max-w-screen-sm sm:px-14`}
4141
>
4242
{_showHandle && (
4343
<div className="w-12 h-1.5 rounded-full bg-zinc-300 cursor-grab active:cursor-grabbing flex flex-col items-center justify-center mx-auto mt-6 mb-2" />

0 commit comments

Comments
 (0)