fix(frontend): add missing border radius to conversation loading on first load (#12796)

This commit is contained in:
Hiep Le
2026-02-09 21:36:07 +07:00
committed by GitHub
parent c4a90b1f89
commit bef9b80b9d
2 changed files with 13 additions and 3 deletions

View File

@@ -1,12 +1,22 @@
import { LoaderCircle } from "lucide-react";
import { useTranslation } from "react-i18next";
import { I18nKey } from "#/i18n/declaration";
import { cn } from "#/utils/utils";
export function ConversationLoading() {
type ConversationLoadingProps = {
className?: string;
};
export function ConversationLoading({ className }: ConversationLoadingProps) {
const { t } = useTranslation();
return (
<div className="bg-[#25272D] flex flex-col items-center justify-center h-full w-full">
<div
className={cn(
"bg-[#25272D] flex flex-col items-center justify-center h-full w-full",
className,
)}
>
<LoaderCircle className="animate-spin w-16 h-16" color="white" />
<span className="text-2xl font-normal leading-5 text-white p-4">
{t(I18nKey.HOME$LOADING)}

View File

@@ -58,7 +58,7 @@ export function ConversationTabContent() {
const conversationTabTitle = t(activeTab.titleKey);
if (shouldShownAgentLoading) {
return <ConversationLoading />;
return <ConversationLoading className="rounded-xl" />;
}
return (