Skip to content

Commit

Permalink
Updating Sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhectorsosa committed Apr 2, 2024
1 parent 925c542 commit 2a9c658
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions apps/next/components/application-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const ApplicationLayout: React.FC<
<nav className="flex flex-col items-center gap-4 px-2 sm:py-4">
<Link
href="/"
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"
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"
>
<SupabaseModulesIcon />
<span className="sr-only">Supabase Modules</span>
Expand Down Expand Up @@ -76,11 +76,15 @@ export const ApplicationLayout: React.FC<
<span className="sr-only">Toggle Menu</span>
</Button>
</SheetTrigger>
<SheetContent side="left" className="sm:max-w-xs">
<SheetContent
onOpenAutoFocus={(e) => e.preventDefault()}
side="left"
className="sm:max-w-xs"
>
<nav className="grid gap-6 text-lg font-medium">
<Link
href="/"
className="group flex size-9 shrink-0 items-center justify-center gap-2 rounded-full text-lg md:size-8 md:text-base"
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"
>
<SupabaseModulesIcon />
<span className="sr-only">Supabase Modules</span>
Expand Down Expand Up @@ -127,8 +131,6 @@ const SupabaseModulesIcon: React.FC = () => {
return (
<svg
className="transition-all group-hover:scale-110"
width="110"
height="110"
viewBox="0 0 110 110"
fill="none"
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions apps/next/components/ui/sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SheetOverlay = React.forwardRef<
>(({ className, ...props }, ref) => (
<SheetPrimitive.Overlay
className={cn(
"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",
"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",
className
)}
{...props}
Expand Down Expand Up @@ -66,7 +66,7 @@ const SheetContent = React.forwardRef<
>
{children}
<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">
<Cross2Icon className="size-4" />
<Cross2Icon className="size-5" />
<span className="sr-only">Close</span>
</SheetPrimitive.Close>
</SheetPrimitive.Content>
Expand Down
2 changes: 1 addition & 1 deletion apps/next/components/user/profile-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const ProfileDropDownComponent: React.FC<{ userId: string }> = ({ userId }) => {

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

Expand Down

0 comments on commit 2a9c658

Please sign in to comment.