fix(webui): show skeleton while conversation history loads

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-20 22:01:40 +08:00
1 parent 85bee83247
commit 14d9e6ed0d
7 files changed
+176 -16

No files matched your search

@@ -0,0 +1,23 @@
import { useTranslation } from "react-i18next";
import { SkeletonStatus } from "@/components/settings/shared/SkeletonStatus";
export function ThreadLoadingSkeleton() {
const { t } = useTranslation();
return (
<SkeletonStatus label={t("thread.loadingConversation")} className="space-y-8 pt-12">
<div className="thread-message-row">
<div className="ml-auto h-10 w-2/5 rounded-floating bg-muted/60" />
</div>
<div className="thread-message-row space-y-3">
<div className="h-3 w-4/5 rounded bg-muted/60" />
<div className="h-3 w-full rounded bg-muted/60" />
<div className="h-3 w-3/5 rounded bg-muted/60" />
</div>
<div className="thread-message-row space-y-3">
<div className="h-3 w-3/4 rounded bg-muted/60" />
<div className="h-3 w-1/2 rounded bg-muted/60" />
</div>
</SkeletonStatus>
);
}