AI BG only on gen

This commit is contained in:
Dustin Brett
2024-10-27 08:51:35 -07:00
parent e773f44b3b
commit 18937f4006
2 changed files with 14 additions and 1 deletions

View File

@@ -446,7 +446,13 @@ const AIChat: FC<AIChatProps> = ({ toggleAI }) => {
)}
</div>
{withCanvas && (
<div className="image-container">
<div
className={clsx({
generating:
responding && index === conversation.length - 1,
"image-container": true,
})}
>
<canvas
ref={(canvas) => {
if (

View File

@@ -260,6 +260,12 @@ const StyledAIChat = styled(motion.section)<StyledAIChatProps>`
max-width: 100%;
}
&:not(.generating) canvas {
animation: unset;
background: transparent;
background-size: unset;
}
.prompt {
color: rgb(15, 15, 15);
font-size: 12px;
@@ -379,6 +385,7 @@ const StyledAIChat = styled(motion.section)<StyledAIChatProps>`
}
&.invisible {
height: 13px;
opacity: 0%;
pointer-events: none;
}