Remove generating avatar animation

This commit is contained in:
Reckless_Satoshi 2024-01-02 17:32:04 +00:00
parent 353897cf9d
commit e885585472
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 3 additions and 12 deletions

View File

@ -49,9 +49,7 @@ const RobotAvatar: React.FC<Props> = ({
const { hostUrl } = useContext<UseAppStoreType>(AppContext);
const backgroundFadeTime = 3000;
const [backgroundData] = useState<BackgroundData>(
placeholderType === 'generating' ? placeholder.generating : placeholder.loading,
);
const [backgroundData] = useState<BackgroundData>(placeholder.loading);
const backgroundImage = `url(data:${backgroundData.mime};base64,${backgroundData.data})`;
const className = placeholderType === 'loading' ? 'loadingAvatar' : 'generatingAvatar';
@ -117,7 +115,8 @@ const RobotAvatar: React.FC<Props> = ({
transform: flipHorizontally ? 'scaleX(-1)' : '',
border: '0.3px solid #55555',
filter: 'dropShadow(0.5px 0.5px 0.5px #000000)',
backgroundImage: activeBackground ? backgroundImage : '',
backgroundImage:
activeBackground && placeholderType == 'loading' ? backgroundImage : '',
}}
>
<div className={className}>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long