Skip to content

Commit

Permalink
Merge branch 'v3-main' into add-guild-page
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Dec 11, 2024
2 parents b5215ec + 23e189b commit 0d6a0df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/components/ui/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ const DialogBody = ({
className,
...props
}: HTMLAttributes<HTMLDivElement>) => (
<ScrollArea className="flex max-h-full flex-col">
<ScrollArea className="group dialog-scroll-area flex max-h-full flex-col">
<div
className={cn("flex flex-col px-6 pb-10 sm:px-10", className)}
className={cn(
"flex flex-col px-6 pb-10 group-[.dialog-scroll-area:has(+div)]:pb-0 sm:px-10",
className,
)}
{...props}
/>
</ScrollArea>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const DrawerContent = forwardRef<
<DrawerPrimitive.Content
ref={ref}
className={cn(
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[calc(100vh-theme(space.16))] flex-col rounded-t-xl bg-background",
"fixed inset-x-0 bottom-0 z-50 mx-auto mt-24 flex h-auto max-h-[calc(100vh-theme(space.16))] max-w-md flex-col rounded-t-xl bg-background",
className,
)}
{...props}
Expand Down Expand Up @@ -87,7 +87,7 @@ const DrawerFooter = ({
...props
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={cn("mt-auto flex flex-col gap-2 px-6 pb-6", className)}
className={cn("mt-auto flex flex-col gap-2 px-6 py-6", className)}
{...props}
/>
);
Expand Down

0 comments on commit 0d6a0df

Please sign in to comment.