mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
fix(frontend): add missing border radius to conversation loading on first load (#12796)
This commit is contained in:
@@ -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)}
|
||||
|
||||
@@ -58,7 +58,7 @@ export function ConversationTabContent() {
|
||||
const conversationTabTitle = t(activeTab.titleKey);
|
||||
|
||||
if (shouldShownAgentLoading) {
|
||||
return <ConversationLoading />;
|
||||
return <ConversationLoading className="rounded-xl" />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user