Skip to content

Commit ea385e7

Browse files
committed
fix(chat): improve spacing
1 parent de781b5 commit ea385e7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/components/Reasoning.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function cleanMarkdown(text: string): string {
2020
</script>
2121

2222
<template>
23-
<UCollapsible v-model:open="open" class="flex flex-col gap-1">
23+
<UCollapsible v-model:open="open" class="flex flex-col gap-1 my-5">
2424
<UButton
2525
class="p-0 group"
2626
color="neutral"

app/components/tool/Chart.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const formatValue = (value: string | number | undefined): string => {
5656
</script>
5757

5858
<template>
59-
<div v-if="invocation.state === 'output-available'">
59+
<div v-if="invocation.state === 'output-available'" class="my-5">
6060
<div v-if="invocation.output.title" class="flex items-center gap-2 mb-2">
6161
<UIcon name="i-lucide-line-chart" class="size-5 text-primary shrink-0" />
6262
<div class="min-w-0">
@@ -113,7 +113,7 @@ const formatValue = (value: string | number | undefined): string => {
113113
</div>
114114
</div>
115115

116-
<div v-else class="rounded-xl px-5 py-4" :class="color">
116+
<div v-else class="rounded-xl px-5 py-4 my-5" :class="color">
117117
<div class="flex items-center justify-center h-44">
118118
<div class="text-center">
119119
<UIcon

app/components/tool/Weather.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const message = computed(() => {
2626
</script>
2727

2828
<template>
29-
<div class="rounded-xl px-5 py-4" :class="color">
29+
<div class="rounded-xl px-5 py-4 my-5" :class="color">
3030
<template v-if="invocation.state === 'output-available'">
3131
<div class="flex items-start justify-between mb-3">
3232
<div class="flex items-baseline">

app/pages/chat/[id].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ onMounted(() => {
9797
class="lg:pt-(--ui-header-height) pb-4 sm:pb-6"
9898
>
9999
<template #content="{ message }">
100-
<div class="*:first:!mt-0 *:last:!mb-0 space-y-5">
100+
<div class="*:first:mt-0 *:last:mb-0">
101101
<template v-for="(part, index) in message.parts" :key="`${message.id}-${part.type}-${index}${'state' in part ? `-${part.state}` : ''}`">
102102
<Reasoning
103103
v-if="part.type === 'reasoning'"
@@ -108,9 +108,9 @@ onMounted(() => {
108108
v-else-if="part.type === 'text'"
109109
:value="part.text"
110110
:cache-key="`${message.id}-${index}`"
111-
:unwrap="message.role === 'user' ? 'p' : undefined"
112111
:components="components"
113112
:parser-options="{ highlight: false }"
113+
class="*:first:mt-0 *:last:mb-0"
114114
/>
115115
<ToolWeather
116116
v-else-if="part.type === 'tool-weather'"

0 commit comments

Comments
 (0)