Skip to content

Commit

Permalink
fix: bottom sheet sizing on large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadBazaz committed Aug 5, 2024
1 parent 3af19c7 commit 325bbe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "material-web-components-react",
"version": "0.3.7",
"author": "Grayhat Team",
"type": "module",
"keywords": [
"react",
"react-component",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/sheet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const BottomSheet: React.FC<BottomSheetProps> = ({
}`}
/>
<Drawer.Content
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`}
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`}
>
{_showHandle && (
<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" />
Expand Down

0 comments on commit 325bbe3

Please sign in to comment.