diff options
| author | Dhravya <[email protected]> | 2024-07-04 15:37:08 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-07-04 15:37:08 -0500 |
| commit | 0da431db2bdbaf91e4512a01d97f840d7d8ef40c (patch) | |
| tree | 4557b6a8e9c569a0d34ce61777ad8fe2afab9746 | |
| parent | small fixes with prompt formatting and browser rendering] (diff) | |
| download | supermemory-0da431db2bdbaf91e4512a01d97f840d7d8ef40c.tar.xz supermemory-0da431db2bdbaf91e4512a01d97f840d7d8ef40c.zip | |
UX: Load while creating memory
| m--------- | apps/browser-rendering | 0 | ||||
| -rw-r--r-- | apps/web/app/(dash)/menu.tsx | 9 | ||||
| -rw-r--r-- | apps/web/app/(landing)/Hero.tsx | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/apps/browser-rendering b/apps/browser-rendering -Subproject 4d21045a45fdbf56b7483d3704ae0474ebf044f +Subproject 0135d8813311b6825382f411cda13f5663b6c46 diff --git a/apps/web/app/(dash)/menu.tsx b/apps/web/app/(dash)/menu.tsx index 11738391..6cea35a4 100644 --- a/apps/web/app/(dash)/menu.tsx +++ b/apps/web/app/(dash)/menu.tsx @@ -109,7 +109,10 @@ function Menu() { const handleSubmit = async (content?: string, space?: string) => { setDialogOpen(false); - toast.info("Creating memory..."); + toast.info("Creating memory...", { + icon: <PlusCircleIcon className="w-4 h-4 text-white animate-spin" />, + duration: 7500, + }); if (!content || content.length === 0) { toast.error("Content is required"); @@ -124,7 +127,9 @@ function Menu() { setContent(""); if (cont.success) { - toast.success("Memory created"); + toast.success("Memory created", { + richColors: true, + }); } else { toast.error(`Memory creation failed: ${cont.error}`); } diff --git a/apps/web/app/(landing)/Hero.tsx b/apps/web/app/(landing)/Hero.tsx index 4a0529aa..5565de3a 100644 --- a/apps/web/app/(landing)/Hero.tsx +++ b/apps/web/app/(landing)/Hero.tsx @@ -75,7 +75,7 @@ function Hero() { width={1512} height={1405} draggable="false" - className="z-40 md:mt-[-40px] hidden sm:block h-full max-w-[70vw] mx-auto md:w-full select-none px-5 rounded-2xl" + className="z-40 md:mt-[-40px] hidden sm:block h-full max-w-[70vw] mx-auto md:w-full select-none px-5 !rounded-2xl" style={{ borderRadius: "20px", }} |