mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 15:54:03 +01:00
feat: enhance chat UI and add location component with images
This commit is contained in:
@@ -32,7 +32,7 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
||||
{{ formatted }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-else class="group space-y-2">
|
||||
<div class="flex flex-col-reverse gap-4 items-start md:flex-row-reverse">
|
||||
<UCard
|
||||
v-if="message.state === ChatState.LOADING && message.fetchStates && message.fetchStates.length > 0"
|
||||
@@ -69,6 +69,9 @@ const formatted = computed(() => useDateFormat(useNow(), 'D MMMM YYYY, HH:mm', {
|
||||
<div v-else-if="message.type === ChatType.WEATHER">
|
||||
<ToolWeather />
|
||||
</div>
|
||||
<div v-else-if="message.type === ChatType.LOCATION">
|
||||
<ToolLocation />
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ message }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user