server : (UI) Support for RTL text as models input or output (#11208)

This commit is contained in:
ebraminio 2025-01-13 17:16:39 +03:30 committed by GitHub
parent ca001f6656
commit 437e05f714
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -37,7 +37,7 @@
<div v-for="conv in conversations" :class="{ <div v-for="conv in conversations" :class="{
'btn btn-ghost justify-start font-normal': true, 'btn btn-ghost justify-start font-normal': true,
'btn-active': conv.id === viewingConvId, 'btn-active': conv.id === viewingConvId,
}" @click="setViewingConv(conv.id)"> }" @click="setViewingConv(conv.id)" dir="auto">
<span class="truncate">{{ conv.messages[0].content }}</span> <span class="truncate">{{ conv.messages[0].content }}</span>
</div> </div>
<div class="text-center text-xs opacity-40 mt-auto mx-4"> <div class="text-center text-xs opacity-40 mt-auto mx-4">
@ -156,6 +156,7 @@
@keydown.enter.shift.exact.prevent="inputMsg += '\n'" @keydown.enter.shift.exact.prevent="inputMsg += '\n'"
:disabled="isGenerating" :disabled="isGenerating"
id="msg-input" id="msg-input"
dir="auto"
></textarea> ></textarea>
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button> <button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button> <button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
@ -244,7 +245,7 @@
<div :class="{ <div :class="{
'chat-bubble markdown': true, 'chat-bubble markdown': true,
'chat-bubble-base-300': msg.role !== 'user', 'chat-bubble-base-300': msg.role !== 'user',
}"> }" dir="auto">
<!-- textarea for editing message --> <!-- textarea for editing message -->
<template v-if="editingContent !== null"> <template v-if="editingContent !== null">
<textarea <textarea