diff --git a/surfsense_web/components/assistant-ui/document-upload-popup.tsx b/surfsense_web/components/assistant-ui/document-upload-popup.tsx index 0b38979a5..46b9f3af9 100644 --- a/surfsense_web/components/assistant-ui/document-upload-popup.tsx +++ b/surfsense_web/components/assistant-ui/document-upload-popup.tsx @@ -20,7 +20,7 @@ import { searchSpaceSettingsDialogAtom } from "@/atoms/settings/settings-dialog. import { DocumentUploadTab } from "@/components/sources/DocumentUploadTab"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Button } from "@/components/ui/button"; -import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog"; +import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog"; // Context for opening the dialog from anywhere interface DocumentUploadDialogContextType { @@ -127,17 +127,13 @@ const DocumentUploadPopupContent: FC<{ onEscapeKeyDown={(e) => e.preventDefault()} className="select-none max-w-2xl w-[95vw] sm:w-[640px] h-[min(440px,75dvh)] sm:h-[min(520px,80vh)] flex flex-col p-0 gap-0 overflow-hidden border border-border ring-0 bg-muted dark:bg-muted text-foreground [&>button]:right-3 sm:[&>button]:right-6 [&>button]:top-5 sm:[&>button]:top-8 [&>button]:opacity-80 [&>button]:hover:opacity-100 [&>button]:hover:bg-foreground/10 [&>button]:z-[100] [&>button>svg]:size-4 sm:[&>button>svg]:size-5" > - Upload Document -
-
-
-

Upload Documents

-
-

+ + Upload Documents + Upload and sync your documents to your search space -

-
+ +
{!isLoading && !hasDocumentSummaryLLM ? ( diff --git a/surfsense_web/components/sources/FolderWatchDialog.tsx b/surfsense_web/components/sources/FolderWatchDialog.tsx index cbd832222..4cb311a46 100644 --- a/surfsense_web/components/sources/FolderWatchDialog.tsx +++ b/surfsense_web/components/sources/FolderWatchDialog.tsx @@ -164,13 +164,13 @@ export function FolderWatchDialog({ return ( - - - Watch Local Folder - Select a folder to sync and watch for changes + + + Watch Local Folder + Select a folder to sync and watch for changes -
+
{selectedFolder ? (
@@ -193,7 +193,7 @@ export function FolderWatchDialog({ @@ -225,7 +225,7 @@ export function FolderWatchDialog({
)} -
+
{submitting ? ( <>