Skip to content

Commit 500bfb4

Browse files
authored
chore: sheet darkmode and improve responsive (#11047)
1 parent 024b92b commit 500bfb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/features/users/components/UserTable/EditSheet/SheetFooterControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function MoreInfoFooter() {
3535
return (
3636
<>
3737
<SheetClose asChild>
38-
<Button color="secondary" type="button" className="justify-center md:w-1/5">
38+
<Button color="secondary" type="button" className="w-full justify-center lg:w-1/5">
3939
{t("close")}
4040
</Button>
4141
</SheetClose>

packages/ui/components/sheet/sheet.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const SheetOverlay = React.forwardRef<
3939
>(({ className, children, ...props }, ref) => (
4040
<SheetPrimitive.Overlay
4141
className={classNames(
42-
"bg-inverted data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in fixed inset-0 z-50 opacity-60 backdrop-blur-sm transition-all duration-100",
42+
"data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in fixed inset-0 z-50 bg-neutral-800 bg-opacity-70 backdrop-blur-[1px] transition-all duration-100",
4343
className
4444
)}
4545
{...props}
@@ -49,7 +49,7 @@ const SheetOverlay = React.forwardRef<
4949
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
5050

5151
const sheetVariants = cva(
52-
"fixed z-50 scale-100 gap-4 bg-default m-4 rounded-xl p-6 opacity-100 shadow-lg border",
52+
"fixed z-50 scale-100 gap-4 bg-default m-4 rounded-xl p-6 opacity-100 shadow-lg border border-default overflow-y-scroll ",
5353
{
5454
variants: {
5555
position: {
@@ -106,7 +106,7 @@ const sheetVariants = cva(
106106
{
107107
position: ["right", "left"],
108108
size: "default",
109-
class: "w-1/3 max-h-[calc(100vh-2rem)]",
109+
class: "w-[calc(100%-2rem)] lg:w-1/3 max-h-[calc(100vh-2rem)]",
110110
},
111111
{
112112
position: ["right", "left"],

0 commit comments

Comments
 (0)