mirror of
https://github.com/sigoden/aichat
synced 2024-11-12 01:10:43 +00:00
refactor: webui render error (#797)
This commit is contained in:
parent
7eefb96b0c
commit
c0eae1c55c
@ -121,6 +121,7 @@
|
||||
|
||||
.chat-message-content .error {
|
||||
color: red;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.chat-message-content .message-text {
|
||||
@ -1028,7 +1029,7 @@
|
||||
}
|
||||
|
||||
function renderMarkdown(text, error = '') {
|
||||
return marked.marked(text) + (error ? `<p class="error">${error}</p>` : '');
|
||||
return marked.marked(text) + (error ? `<pre class="error">${error}</pre>` : '');
|
||||
}
|
||||
|
||||
function calculateOffsets(pieces) {
|
||||
|
@ -198,6 +198,7 @@
|
||||
|
||||
.chat-message-content .error {
|
||||
color: red;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.chat-message-content .message-text {
|
||||
@ -1251,7 +1252,7 @@
|
||||
}
|
||||
|
||||
function renderMarkdown(text, error = '') {
|
||||
return marked.marked(text) + (error ? `<p class="error">${error}</p>` : '');
|
||||
return marked.marked(text) + (error ? `<pre class="error">${error}</pre>` : '');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user