mirror of
https://github.com/WenPai-org/wpmind.git
synced 2025-08-03 19:19:46 +08:00
remove cursor animation
This commit is contained in:
parent
f80c6ac863
commit
d04385435a
2 changed files with 1 additions and 17 deletions
|
@ -25,16 +25,10 @@ const AIResponse = memo(
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{response.length > 0 && (
|
{response.length > 0 && (
|
||||||
<div
|
<div className="mind-popup-response__preview">
|
||||||
className="mind-popup-response__preview"
|
|
||||||
style={{
|
|
||||||
opacity: loading ? 0.85 : 1,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<BlockPreview blocks={response} viewportWidth={800} />
|
<BlockPreview blocks={response} viewportWidth={800} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{loading && <div className="mind-popup-cursor" />}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,16 +5,6 @@
|
||||||
|
|
||||||
/* Optimize repaints */
|
/* Optimize repaints */
|
||||||
contain: content;
|
contain: content;
|
||||||
|
|
||||||
/* Smooth typing cursor */
|
|
||||||
.mind-popup-cursor {
|
|
||||||
display: inline-block;
|
|
||||||
width: 1.5px;
|
|
||||||
height: 1em;
|
|
||||||
background: currentColor;
|
|
||||||
margin-left: 2px;
|
|
||||||
animation: mind-cursor-blink 1s step-end infinite;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes mind-cursor-blink {
|
@keyframes mind-cursor-blink {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue