Skip to content

Commit 6c94508

Browse files
committed
chore: UI/UX/DX fixes
1 parent 0118ac8 commit 6c94508

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

apps/frontend/app/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if (import.meta.client && convexVueContext?.options?.url) {
4040
<GlobalRegister />
4141

4242
<NuxtLayout>
43-
<NuxtPage :page-key="(route) => route.name as string" />
43+
<NuxtPage :page-key="(route) => (route.name as string)" />
4444
</NuxtLayout>
4545
</template>
4646
</div>

apps/frontend/app/components/LiquidGlassDiv.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
position: relative;
2929
border-radius: var(--c-radius);
3030
isolation: isolate;
31-
touch-action: none;
3231
box-shadow: 0px 6px var(--outer-shadow-blur) rgba(0, 0, 0, 0.2);
3332
}
3433

apps/frontend/app/components/chat/ChatInterface.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ const nearTopBottom = computed(() => {
3030
if (!el)
3131
return [null, null]
3232
33-
const currentScroll = lenisRef.value!.lenis.targetScroll || scrollY.value
33+
const currentScroll = Math.ceil(lenisRef.value!.lenis.targetScroll || scrollY.value)
3434
3535
const gapFromTop = currentScroll
3636
const gapFromBottom = el.scrollHeight - el.clientHeight - currentScroll
3737
38-
const nearTop = gapFromTop < 69
39-
const nearBottom = gapFromBottom < 69
38+
const nearTop = gapFromTop < 369
39+
const nearBottom = gapFromBottom < 369
4040
return [nearTop && gapFromTop + 1, nearBottom && gapFromBottom + 1, lenisRef.value!.lenis.targetScroll, scrollY.value]
4141
})
4242
@@ -398,7 +398,7 @@ function alertIsStreaming(input: string) {
398398
/>
399399

400400
<div
401-
v-show="!(isFetching && !messages.length)"
401+
v-show="!messages.length && !isFetching"
402402
class="absolute left-0 z-0 h-screen w-full place-content-center overflow-hidden transition-height"
403403
>
404404
<IUIMaybeGlassCard

apps/frontend/app/components/chat/ChatSidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const [DefineThreadLiItem, ReuseThreadLiItem] = createReusableTemplate<{ thread:
143143
<NuxtLink
144144
:to="{ name: 'chat-all' }"
145145
exact-active-class="[&>*]:(bg-accent/80! hover:bg-accent/100! active:bg-accent/60!)"
146-
@pointerdown="++chatContext.interfaceSRK.value; sidebarContext.setOpenMobile(false)"
146+
@pointerdown="navigateTo(`/chat/`); ++chatContext.interfaceSRK.value; sidebarContext.setOpenMobile(false)"
147147
>
148148
<Button class="w-full" variant="outline" size="sm">
149149
{{ $t('chat.sidebar.newChat') }}
@@ -186,7 +186,7 @@ const [DefineThreadLiItem, ReuseThreadLiItem] = createReusableTemplate<{ thread:
186186
<NuxtLink
187187
:to="`/chat/${thread._id}`"
188188
class="group/thread relative block flex items-center gap-2 overflow-hidden rounded-md p-2 px-3 text-sm [&.router-link-exact-active]:bg-primary/10 hover:bg-primary/20"
189-
@pointerdown="sidebarContext.setOpenMobile(false)"
189+
@pointerdown="navigateTo(`/chat/${thread._id}`); sidebarContext.setOpenMobile(false)"
190190
>
191191
<div class="h-4 flex items-center gap-1">
192192
<Tooltip v-if="thread.parentThread" :delay-duration="500">

0 commit comments

Comments
 (0)