Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix empty state center (#485)
Ameer Al Ashhab8f54c157523c
diff --git a/apps/web/app/dashboard/_components/DashboardInner.tsx b/apps/web/app/dashboard/_components/DashboardInner.tsxindex 6bbd43381..cd18887b6 100644--- a/apps/web/app/dashboard/_components/DashboardInner.tsx+++ b/apps/web/app/dashboard/_components/DashboardInner.tsx@@ -76,7 +76,7 @@ export default function DashboardInner({"flex overflow-auto flex-col flex-1 p-5 pb-5 border bg-gray-1 border-gray-3 lg:rounded-tl-2xl lg:p-8")}>- <div className="flex flex-col gap-4">{children}</div>+ <div className="flex flex-col flex-1 gap-4 h-full">{children}</div></div></div>);diff --git a/apps/web/app/dashboard/caps/components/EmptyCapState.tsx b/apps/web/app/dashboard/caps/components/EmptyCapState.tsxindex e0c7debf6..d4677b63b 100644--- a/apps/web/app/dashboard/caps/components/EmptyCapState.tsx+++ b/apps/web/app/dashboard/caps/components/EmptyCapState.tsx@@ -6,22 +6,22 @@ interface EmptyCapStateProps {}export const EmptyCapState: React.FC<EmptyCapStateProps> = ({ userName }) => {- const { rive, RiveComponent: EmptyCap } = useRive({+ const { RiveComponent: EmptyCap } = useRive({src: "/rive/capsempty.riv",artboard: "empty",autoplay: true,});return (- <div className="flex flex-col flex-1 justify-center items-center w-full">- <div className="flex flex-col gap-3 items-center h-full text-center">+ <div className="flex flex-col flex-1 justify-center items-center w-full h-full">+ <div className="flex flex-col gap-3 justify-center items-center h-full text-center"><div className="mx-auto w-full mb-10 max-w-[450px] flex justify-center items-center"><EmptyCap className="h-[150px] w-[400px]" /></div><div className="flex flex-col items-center">- <p className="mb-1 text-xl font-semibold text-gray-1">+ <p className="mb-1 text-xl font-semibold text-gray-12">Hey{userName ? ` ${userName}` : ""}! Record your first Cap</p>- <p className="max-w-md text-gray-8 text-md">+ <p className="max-w-md text-gray-10 text-md">Craft your narrative with Cap - get projects done quicker.</p></div>diff --git a/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx b/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsxindex 51d702548..9f2adeee3 100644--- a/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx+++ b/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx@@ -6,19 +6,19 @@ export const EmptySharedCapState: React.FC<EmptySharedCapStateProps> = ({spaceName,}) => {return (- <div className="w-full flex flex-col items-center justify-center">- <div className="w-full max-w-md mx-auto">+ <div className="flex flex-col flex-1 justify-center items-center w-full h-full">+ <div className="mx-auto w-full max-w-md"><img- className="w-full h-auto"+ className="w-full max-w-[400px] h-auto"src="/illustrations/person-microphone.svg"alt="Person using microphone"/></div><div className="text-center pb-[30px]">- <h1 className="text-2xl font-semibold mb-3">- <span className="block">No shared Caps yet!</span>- </h1>- <p className="text-xl max-w-md">+ <p className="mb-3 text-xl font-semibold text-gray-12">+ No shared Caps yet!+ </p>+ <p className="max-w-md text-md text-gray-10">There are no Caps shared with {spaceName} yet. Ask your team membersto share their Caps with this space.</p>