Skip to content

Commit 2a9c658

Browse files
committed
Updating Sheet
1 parent 925c542 commit 2a9c658

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

apps/next/components/application-layout.tsx

+7-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const ApplicationLayout: React.FC<
4848
<nav className="flex flex-col items-center gap-4 px-2 sm:py-4">
4949
<Link
5050
href="/"
51-
className="group flex size-9 shrink-0 items-center justify-center gap-2 rounded-full text-lg *:size-9 md:size-8 md:text-base"
51+
className="group flex size-9 shrink-0 items-center justify-center gap-2 rounded-full text-lg *:size-6 md:size-8 md:text-base"
5252
>
5353
<SupabaseModulesIcon />
5454
<span className="sr-only">Supabase Modules</span>
@@ -76,11 +76,15 @@ export const ApplicationLayout: React.FC<
7676
<span className="sr-only">Toggle Menu</span>
7777
</Button>
7878
</SheetTrigger>
79-
<SheetContent side="left" className="sm:max-w-xs">
79+
<SheetContent
80+
onOpenAutoFocus={(e) => e.preventDefault()}
81+
side="left"
82+
className="sm:max-w-xs"
83+
>
8084
<nav className="grid gap-6 text-lg font-medium">
8185
<Link
8286
href="/"
83-
className="group flex size-9 shrink-0 items-center justify-center gap-2 rounded-full text-lg md:size-8 md:text-base"
87+
className="group flex size-9 shrink-0 items-center justify-center gap-2 rounded-full text-lg *:size-6 md:size-8 md:text-base"
8488
>
8589
<SupabaseModulesIcon />
8690
<span className="sr-only">Supabase Modules</span>
@@ -127,8 +131,6 @@ const SupabaseModulesIcon: React.FC = () => {
127131
return (
128132
<svg
129133
className="transition-all group-hover:scale-110"
130-
width="110"
131-
height="110"
132134
viewBox="0 0 110 110"
133135
fill="none"
134136
xmlns="http://www.w3.org/2000/svg"

apps/next/components/ui/sheet.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const SheetOverlay = React.forwardRef<
2121
>(({ className, ...props }, ref) => (
2222
<SheetPrimitive.Overlay
2323
className={cn(
24-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
24+
"fixed inset-0 z-50 bg-white/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2525
className
2626
)}
2727
{...props}
@@ -66,7 +66,7 @@ const SheetContent = React.forwardRef<
6666
>
6767
{children}
6868
<SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
69-
<Cross2Icon className="size-4" />
69+
<Cross2Icon className="size-5" />
7070
<span className="sr-only">Close</span>
7171
</SheetPrimitive.Close>
7272
</SheetPrimitive.Content>

apps/next/components/user/profile-dropdown.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const ProfileDropDownComponent: React.FC<{ userId: string }> = ({ userId }) => {
4141

4242
if (profile.isLoading) {
4343
return (
44-
<div className="relative ml-auto flex size-10 shrink-0 animate-pulse overflow-hidden rounded-full bg-muted" />
44+
<div className="relative ml-auto flex size-9 animate-pulse overflow-hidden rounded-full bg-muted" />
4545
)
4646
}
4747

0 commit comments

Comments
 (0)