+
+
+
+ {/* User message */}
+
+
+
+
+ {/* Assistant message */}
+
+
+
+
+
+
+ {/* User message */}
+
+
+
+
+ {/* Assistant message */}
+
+
+
+
+
+
+ {/* User message */}
+
+
+
- {/* Assistant message */}
-
-
-
-
-
-
- {/* User message */}
-
-
-
-
- {/* Assistant message */}
-
-
-
-
-
-
- {/* User message */}
-
-
-
-
-
- {/* Input bar */}
-
diff --git a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
index 7cc65d2b8..a55909ab2 100644
--- a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx
@@ -23,11 +23,24 @@ import { SidebarHeader } from "./SidebarHeader";
import { SidebarSection } from "./SidebarSection";
import { SidebarUserProfile } from "./SidebarUserProfile";
-function ChatListItemSkeleton() {
+const CHAT_LIST_SKELETON_WIDTHS = ["w-[78%]", "w-[64%]", "w-[86%]", "w-[58%]", "w-[72%]"];
+
+function ChatListItemSkeleton({ widthClass }: { widthClass: string }) {
return (
-
-
-
+
+ );
+}
+
+function ChatListSkeletonRows() {
+ return (
+
+ {CHAT_LIST_SKELETON_WIDTHS.map((widthClass) => (
+
+ ))}
);
}
@@ -217,13 +230,7 @@ export function Sidebar({
}
>
{isLoadingChats ? (
-
-
-
-
-
-
-
+
) : sharedChats.length > 0 ? (
) : (
-
{t("no_shared_chats")}
+
{t("no_shared_chats")}
)}
@@ -274,13 +281,7 @@ export function Sidebar({
}
>
{isLoadingChats ? (
-
-
-
-
-
-
-
+
) : chats.length > 0 ? (
) : (
-
{t("no_chats")}
+
{t("no_chats")}
)}