diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
index 68d971fc4..918032acd 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx
@@ -986,9 +986,10 @@ export function DocumentsTableShell({
handleDeleteFromMenu();
}}
disabled={isDeleting}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
+ className="relative bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
- {isDeleting ? : "Delete"}
+ Delete
+ {isDeleting && }
@@ -1104,9 +1105,10 @@ export function DocumentsTableShell({
handleBulkDelete();
}}
disabled={isBulkDeleting}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
+ className="relative bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
- {isBulkDeleting ? : "Delete"}
+ Delete
+ {isBulkDeleting && }
diff --git a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx
index 38ccafa94..104dc111f 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx
@@ -165,8 +165,9 @@ export function PromptsContent() {
-
);
diff --git a/surfsense_web/components/layout/providers/LayoutDataProvider.tsx b/surfsense_web/components/layout/providers/LayoutDataProvider.tsx
index ef9ed1402..57a0f89cf 100644
--- a/surfsense_web/components/layout/providers/LayoutDataProvider.tsx
+++ b/surfsense_web/components/layout/providers/LayoutDataProvider.tsx
@@ -795,9 +795,10 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
confirmDeleteChat();
}}
disabled={isDeletingChat}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90 gap-2"
+ className="relative bg-destructive text-destructive-foreground hover:bg-destructive/90 items-center justify-center"
>
- {isDeletingChat ? : tCommon("delete")}
+ {tCommon("delete")}
+ {isDeletingChat && }
@@ -835,15 +836,11 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
- {isRenamingChat ? (
- <>
-
- {tSidebar("renaming") || "Renaming"}
- >
- ) : (
- tSidebar("rename") || "Rename"
+ {tSidebar("rename") || "Rename"}
+ {isRenamingChat && (
+
)}
@@ -869,15 +866,11 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
confirmDeleteSearchSpace();
}}
disabled={isDeletingSearchSpace}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90 gap-2"
+ className="relative bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
- {isDeletingSearchSpace ? (
- <>
-
- {t("deleting")}
- >
- ) : (
- tCommon("delete")
+ {tCommon("delete")}
+ {isDeletingSearchSpace && (
+
)}
@@ -903,15 +896,11 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
confirmLeaveSearchSpace();
}}
disabled={isLeavingSearchSpace}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90 gap-2"
+ className="relative bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
- {isLeavingSearchSpace ? (
- <>
-
- {t("leaving")}
- >
- ) : (
- t("leave")
+ {t("leave")}
+ {isLeavingSearchSpace && (
+
)}
diff --git a/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
index da28c17e0..ede469039 100644
--- a/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/DocumentsSidebar.tsx
@@ -807,9 +807,10 @@ export function DocumentsSidebar({
handleBulkDeleteSelected();
}}
disabled={isBulkDeleting}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
+ className="relative bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
- {isBulkDeleting ? : "Delete"}
+ Delete
+ {isBulkDeleting && }