mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac/fix: user message toolbar display
This commit is contained in:
@@ -323,7 +323,11 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if edit !== true}
|
||||||
<div
|
<div
|
||||||
class=" flex {($settings?.chatBubble ?? true)
|
class=" flex {($settings?.chatBubble ?? true)
|
||||||
? 'justify-end'
|
? 'justify-end'
|
||||||
@@ -388,9 +392,7 @@
|
|||||||
messageIndexEdit = true;
|
messageIndexEdit = true;
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
const input = document.getElementById(
|
const input = document.getElementById(`message-index-input-${message.id}`);
|
||||||
`message-index-input-${message.id}`
|
|
||||||
);
|
|
||||||
if (input) {
|
if (input) {
|
||||||
input.focus();
|
input.focus();
|
||||||
input.select();
|
input.select();
|
||||||
@@ -560,9 +562,7 @@
|
|||||||
messageIndexEdit = true;
|
messageIndexEdit = true;
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
const input = document.getElementById(
|
const input = document.getElementById(`message-index-input-${message.id}`);
|
||||||
`message-index-input-${message.id}`
|
|
||||||
);
|
|
||||||
if (input) {
|
if (input) {
|
||||||
input.focus();
|
input.focus();
|
||||||
input.select();
|
input.select();
|
||||||
@@ -598,8 +598,6 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user