diff --git a/src/app/page.tsx b/src/app/page.tsx index 6a2a4b9..278f9fe 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -236,15 +236,17 @@ const ProjectDropdown = ({ - +
{project.title} - + + +
- Actions for {project.title} + Additional Options for the Project
@@ -329,8 +331,32 @@ const ProjectDropdown = ({ ); }; -const ProjectDescription = ({ project }: { project: Project }): ReactNode => { +const ProjectDescription = ({ project }: { project: Project}): ReactNode => { + const isMobile = useIsMobile(); if (!project.description) return <>; + + if (isMobile) { + return ( + + + + + + + {project.title} Description + Additional Information About the Project + + +
+ {project.description} +
+
+
+ ); + } + return ( @@ -339,7 +365,7 @@ const ProjectDescription = ({ project }: { project: Project }): ReactNode => { -

Project Description

+

{project.title} Description

{project.description}

@@ -371,6 +397,7 @@ const ProjectContainer = ({ }; // Automatically add UUID to the selectedProjects + // useEffect is required here because we can't update SelectContext while rendering useEffect(() => { if (mounted) { if (selected) { @@ -398,12 +425,12 @@ const ProjectContainer = ({ {project.editDate &&

Last Edit Date: {date.toLocaleDateString()}, {date.toLocaleTimeString()}

}
- {!selecting && } + {!selecting && }
{selecting && ( -
+
setSelected(checked as boolean)} />
)} diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx index 84649ad..404a713 100644 --- a/src/components/ui/sheet.tsx +++ b/src/components/ui/sheet.tsx @@ -67,7 +67,8 @@ function SheetContent({ "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", - className + "px-safe-or-2 pb-safe-or-2 gap-1", + className, )} {...props} >