feat: enhance chat UI and add location component with images

This commit is contained in:
2025-09-02 18:21:48 +02:00
parent 3fa4f574d3
commit 01bbb6c00a
11 changed files with 49 additions and 24 deletions

View File

@@ -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>