refac/fix: user message toolbar display

This commit is contained in:
Timothy Jaeryang Baek
2025-08-14 04:12:30 +04:00
parent b43acc2b3d
commit e13f1738d4

View File

@@ -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>