Add copy chat message feature in Chat panel and enable usage in 'use chat copy' setting.

- Added 'copied' string to language translation in multiple translations file.
- Added 'CopyIcon' to svelte import.
- Defined a new status message variable in Chat.svelte.
- Created a new function 'setStatusMessage' to display the current panel's state after certain action.
- Added a new setting 'useChatCopy' in 'DisplaySettings.svelte'.
- Created a checkbox with label 'useChatCopy' to toggle the Chat message copy.
- Integrated Clipboard API in Chat code to handle chat message copy via button click.
This commit is contained in:
LL
2023-06-06 12:36:37 +09:00
parent f771fe3890
commit 54c6a9ef9c
6 changed files with 37 additions and 7 deletions

View File

@@ -145,5 +145,9 @@
}}/>
<span>{language.textScreenBorder}</span>
</div>
{/if}
{/if}
<div class="flex items-center mt-2">
<Check bind:check={$DataBase.useChatCopy}/>
<span>{language.useChatCopy}</span>
</div>