Skip to content

Commit 60675a1

Browse files
committed
Right-align short user messages
1 parent 6c42aae commit 60675a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/AssistantChatMessage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const copyMessage = async () => {
4747
<label class="bg-layer bg-opacity-75 block m-1 px-1 rounded sticky top-1 z-10" :class="{ 'self-end': isHuman, 'self-start': isAssistant }">
4848
<small>{{ name }}</small>
4949
</label>
50-
<div class="flex items-start">
50+
<div class="flex items-start" :class="{ 'justify-end': isHuman, 'justify-start': isAssistant }">
5151
<CoreLayer>
5252
<CoreEditor v-if="isMounted" :model-value="text" :options="options" class="bg-layer" />
5353
</CoreLayer>

0 commit comments

Comments
 (0)