forked from open-webui/open-webui
refac: naming convention
This commit is contained in:
parent
06a6136671
commit
dcb92f7f74
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
||||||
import { onMount, tick, getContext } from 'svelte';
|
import { onMount, tick, getContext } from 'svelte';
|
||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
let componentRoot: HTMLElement;
|
let messageElement: HTMLElement;
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderLatex = () => {
|
const renderLatex = () => {
|
||||||
let chatMessageElements = componentRoot.getElementsByClassName('chat-assistant');
|
let chatMessageElements = messageElement.getElementsByClassName('chat-assistant');
|
||||||
// let lastChatMessageElement = chatMessageElements[chatMessageElements.length - 1];
|
// let lastChatMessageElement = chatMessageElements[chatMessageElements.length - 1];
|
||||||
|
|
||||||
for (const element of chatMessageElements) {
|
for (const element of chatMessageElements) {
|
||||||
|
@ -323,7 +323,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#key message.id}
|
{#key message.id}
|
||||||
<div class=" flex w-full message-{message.id}" bind:this={componentRoot}>
|
<div class=" flex w-full message-{message.id}" bind:this={messageElement}>
|
||||||
<ProfileImage
|
<ProfileImage
|
||||||
src={modelfiles[message.model]?.imageUrl ?? `${WEBUI_BASE_URL}/static/favicon.png`}
|
src={modelfiles[message.model]?.imageUrl ?? `${WEBUI_BASE_URL}/static/favicon.png`}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue