Skip to content

Commit 504af20

Browse files
authored
server : (UI) Improve messages bubble shape in RTL (#11220)
I simply have overlooked message bubble's tail placement for RTL text as I use the dark mode and that isn't visible there and this fixes it.
1 parent 84a4481 commit 504af20

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/server/public/index.html.gz

11 Bytes
Binary file not shown.

examples/server/webui/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,11 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
245245
<div :class="{
246246
'chat-bubble markdown': true,
247247
'chat-bubble-base-300': msg.role !== 'user',
248-
}" dir="auto">
248+
}">
249249
<!-- textarea for editing message -->
250250
<template v-if="editingContent !== null">
251251
<textarea
252+
dir="auto"
252253
class="textarea textarea-bordered bg-base-100 text-base-content w-[calc(90vw-8em)] lg:w-96"
253254
v-model="editingContent"></textarea>
254255
<br/>
@@ -259,7 +260,9 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
259260
<!-- show loading dots for pending message -->
260261
<span v-if="msg.content === null" class="loading loading-dots loading-md"></span>
261262
<!-- render message as markdown -->
262-
<vue-markdown v-else :source="msg.content"></vue-markdown>
263+
<div v-else dir="auto">
264+
<vue-markdown :source="msg.content"></vue-markdown>
265+
</div>
263266
<!-- render timings if enabled -->
264267
<div class="dropdown dropdown-hover dropdown-top mt-2" v-if="timings && config.showTokensPerSecond">
265268
<div tabindex="0" role="button" class="cursor-pointer font-semibold text-sm opacity-60">Speed: {{ timings.predicted_per_second.toFixed(1) }} t/s</div>

0 commit comments

Comments
 (0)