diff --git a/app/@modal/(.)images/[id]/modal.tsx b/app/@modal/(.)images/[id]/modal.tsx index 916bcd9..9fbb317 100644 --- a/app/@modal/(.)images/[id]/modal.tsx +++ b/app/@modal/(.)images/[id]/modal.tsx @@ -21,7 +21,7 @@ export function Modal({ children }: { children: React.ReactNode }) { return createPortal( {children} diff --git a/app/page.tsx b/app/page.tsx index dc34f87..ce8f0c9 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,9 +7,9 @@ export const dynamic = 'force-dynamic' function Loading() { return ( -
+
-
+
@@ -21,7 +21,7 @@ export default function HomePage() { return ( <> -
Please sign in
+
Please sign in
}> diff --git a/components/fullImagePage.tsx b/components/fullImagePage.tsx index 0400834..0527cdb 100644 --- a/components/fullImagePage.tsx +++ b/components/fullImagePage.tsx @@ -11,8 +11,8 @@ export default async function FullPageImageView(props: { imageId: number }) { const image = await getUserImage(idAsNumber) const uploaderInfo = await clerkClient.users.getUser(image.userId) return ( -
-
+
+
{image.name}

{image.name}

-
Uploaded by: {uploaderInfo.fullName}
-
Created on: {new Date(image.createdAt).toLocaleDateString()}
-
{ diff --git a/components/shinyButton.tsx b/components/shinyButton.tsx index eae802a..248ca67 100644 --- a/components/shinyButton.tsx +++ b/components/shinyButton.tsx @@ -1,21 +1,25 @@ 'use client' -import { motion } from 'framer-motion' +import { motion, type HTMLMotionProps } from 'framer-motion' + +type ExtendedMotionProps = HTMLMotionProps<'button'> & { + initial?: Record + animate?: Record +} + +type ShinyButtonProps = ExtendedMotionProps & { + children: React.ReactNode +} export default function ShinyButton({ children, type = 'button', // Default to "button" type -}: { - children: React.ReactNode - type?: 'button' | 'submit' | 'reset' // Define the optional type prop -}) { + ...rest +}: ShinyButtonProps) { return ( {children} diff --git a/styles/globals.css b/styles/globals.css index efc596e..689a7cf 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -72,12 +72,16 @@ } body { @apply bg-background text-foreground; + overscroll-behavior: none; + } + ::-webkit-scrollbar { + display: none; } } dialog { - max-width: 100vw; - max-height: 100vh; + max-width: 100svw; + max-height: 100svh; } svg.spinner {