Skip to content

Commit 437e05f

Browse files
authored
server : (UI) Support for RTL text as models input or output (#11208)
1 parent ca001f6 commit 437e05f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/server/public/index.html.gz

14 Bytes
Binary file not shown.

examples/server/webui/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h2 class="font-bold ml-4">Conversations</h2>
3737
<div v-for="conv in conversations" :class="{
3838
'btn btn-ghost justify-start font-normal': true,
3939
'btn-active': conv.id === viewingConvId,
40-
}" @click="setViewingConv(conv.id)">
40+
}" @click="setViewingConv(conv.id)" dir="auto">
4141
<span class="truncate">{{ conv.messages[0].content }}</span>
4242
</div>
4343
<div class="text-center text-xs opacity-40 mt-auto mx-4">
@@ -156,6 +156,7 @@ <h2 class="font-bold ml-4">Conversations</h2>
156156
@keydown.enter.shift.exact.prevent="inputMsg += '\n'"
157157
:disabled="isGenerating"
158158
id="msg-input"
159+
dir="auto"
159160
></textarea>
160161
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
161162
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
@@ -244,7 +245,7 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
244245
<div :class="{
245246
'chat-bubble markdown': true,
246247
'chat-bubble-base-300': msg.role !== 'user',
247-
}">
248+
}" dir="auto">
248249
<!-- textarea for editing message -->
249250
<template v-if="editingContent !== null">
250251
<textarea

0 commit comments

Comments
 (0)