minor changes

This commit is contained in:
Daniel Avila 2023-02-26 14:10:44 -05:00
parent 8e5148b390
commit 1bba86f2e2
5 changed files with 17 additions and 4267 deletions

4
.gitignore vendored
View file

@ -39,4 +39,6 @@ bower_components/
# Environment
.env
cache.json
cache.json
src/style - official.css

View file

@ -70,6 +70,7 @@ export default function Message({
</div>
) : (
<div className="flex min-h-[20px] flex-col items-start gap-4 whitespace-pre-wrap">
{/* <div className={`${blinker ? 'result-streaming' : ''} markdown prose dark:prose-invert light w-full break-words`}> */}
<div className="markdown prose dark:prose-invert light w-full break-words">
{notUser ? wrapText(text) : text}
{blinker && <span className="result-streaming"></span>}

View file

@ -39,9 +39,6 @@ export default function TextWrapper({ text }) {
// to match unenclosed code blocks
if (text.match(/```/g)?.length === 1) {
// if (text.match(/```/g)?.length === 1) {
// const splitString = text.split('```')[1].split(/\s+/).slice(1).join('').trim();
// embedTest = splitString.length > 0;
embedTest = true;
}

File diff suppressed because it is too large Load diff

View file

@ -1200,17 +1200,6 @@ html {
color: rgba(172, 172, 190, var(--tw-text-opacity));
}
/* .result-streaming>:not(ol):not(ul):not(pre):last-child:after,
.result-streaming>ol:last-child li:last-child:after,
.result-streaming>pre:last-child code:after,
.result-streaming>ul:last-child li:last-child:after {
-webkit-animation:blink 1s steps(5,start) infinite;
animation:blink 1s steps(5,start) infinite;
content:"▋";
margin-left:.25rem;
vertical-align:baseline
} */
@-webkit-keyframes spin {
to {
-webkit-transform: rotate(1turn);
@ -1231,8 +1220,20 @@ html {
.result-streaming {
-webkit-animation: blink 1s steps(5, start) infinite;
animation: blink 1s steps(5, start) infinite;
/* content:"▋"; */
content:"▋";
margin-left: 0.25rem;
vertical-align: baseline;
}
/* .result-streaming>:not(ol):not(ul):not(pre):last-child:after,
.result-streaming>ol:last-child li:last-child:after,
.result-streaming>pre:last-child code:after,
.result-streaming>ul:last-child li:last-child:after {
-webkit-animation:blink 1s steps(5,start) infinite;
animation:blink 1s steps(5,start) infinite;
content:"▋";
margin-left:.25rem;
vertical-align:baseline
} */