From a7a03927dd44d41efa6f9b014a788c4d298e1007 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 4 May 2025 16:19:09 +0200 Subject: [PATCH] pages s3 --- components/notes-dialog.tsx | 44 ++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/components/notes-dialog.tsx b/components/notes-dialog.tsx index 0478fa53..65f459bf 100644 --- a/components/notes-dialog.tsx +++ b/components/notes-dialog.tsx @@ -1,12 +1,31 @@ "use client"; import { useState } from "react"; -import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "@/components/ui/dialog"; +import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, DialogPortal } from "@/components/ui/dialog"; +import * as DialogPrimitive from "@radix-ui/react-dialog"; +import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import { Textarea } from "@/components/ui/textarea"; import { Input } from "@/components/ui/input"; -import { Loader2 } from "lucide-react"; +import { Loader2, X } from "lucide-react"; import { useSession } from "next-auth/react"; +import * as React from "react"; + +// Custom DialogOverlay to override the default black background +const DialogOverlay = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; interface NotesDialogProps { open: boolean; @@ -72,9 +91,9 @@ export function NotesDialog({ open, onOpenChange }: NotesDialogProps) { return ( - + - Quick Note + Quick Note
@@ -88,7 +107,7 @@ export function NotesDialog({ open, onOpenChange }: NotesDialogProps) { setTitle(e.target.value)} disabled={isSaving} @@ -99,7 +118,7 @@ export function NotesDialog({ open, onOpenChange }: NotesDialogProps) {