mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
minor changes
This commit is contained in:
parent
8e5148b390
commit
1bba86f2e2
5 changed files with 17 additions and 4267 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -39,4 +39,6 @@ bower_components/
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
.env
|
||||||
cache.json
|
cache.json
|
||||||
|
|
||||||
|
src/style - official.css
|
||||||
|
|
@ -70,6 +70,7 @@ export default function Message({
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex min-h-[20px] flex-col items-start gap-4 whitespace-pre-wrap">
|
<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">
|
<div className="markdown prose dark:prose-invert light w-full break-words">
|
||||||
{notUser ? wrapText(text) : text}
|
{notUser ? wrapText(text) : text}
|
||||||
{blinker && <span className="result-streaming">█</span>}
|
{blinker && <span className="result-streaming">█</span>}
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,6 @@ export default function TextWrapper({ text }) {
|
||||||
|
|
||||||
// to match unenclosed code blocks
|
// to match unenclosed code blocks
|
||||||
if (text.match(/```/g)?.length === 1) {
|
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;
|
embedTest = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1200,17 +1200,6 @@ html {
|
||||||
color: rgba(172, 172, 190, var(--tw-text-opacity));
|
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 {
|
@-webkit-keyframes spin {
|
||||||
to {
|
to {
|
||||||
-webkit-transform: rotate(1turn);
|
-webkit-transform: rotate(1turn);
|
||||||
|
|
@ -1231,8 +1220,20 @@ html {
|
||||||
.result-streaming {
|
.result-streaming {
|
||||||
-webkit-animation: blink 1s steps(5, start) infinite;
|
-webkit-animation: blink 1s steps(5, start) infinite;
|
||||||
animation: blink 1s steps(5, start) infinite;
|
animation: blink 1s steps(5, start) infinite;
|
||||||
/* content:"▋"; */
|
content:"▋";
|
||||||
margin-left: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
vertical-align: baseline;
|
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
|
||||||
|
} */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue