forked from open-webui/open-webui
Merge pull request #341 from ollama-webui/edit-message-fix
fix: edit message issue
This commit is contained in:
commit
9937b5e467
3 changed files with 38 additions and 43 deletions
|
@ -215,6 +215,7 @@
|
|||
{#if messages.length == 0}
|
||||
<Placeholder models={selectedModels} modelfiles={selectedModelfiles} />
|
||||
{:else}
|
||||
{#key chatId}
|
||||
{#each messages as message, messageIdx}
|
||||
<div class=" w-full">
|
||||
<div class="flex justify-between px-5 mb-3 max-w-3xl mx-auto rounded-lg group">
|
||||
|
@ -253,4 +254,5 @@
|
|||
{#if bottomPadding}
|
||||
<div class=" mb-10" />
|
||||
{/if}
|
||||
{/key}
|
||||
{/if}
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
let speaking = null;
|
||||
|
||||
$: if (message) {
|
||||
edit = false;
|
||||
editedContent = '';
|
||||
renderStyling();
|
||||
}
|
||||
|
||||
|
|
|
@ -39,11 +39,6 @@
|
|||
edit = false;
|
||||
editedContent = '';
|
||||
};
|
||||
|
||||
$: if (message) {
|
||||
edit = false;
|
||||
editedContent = '';
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class=" flex w-full">
|
||||
|
|
Loading…
Reference in a new issue