Skip to content

Commit 9b244f4

Browse files
committed
fix: viewport on some mobile browsers
1 parent 0730423 commit 9b244f4

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ function doScrollBottom({ smooth = true, maybe = false, tries = 0, lastScrollTop
418418

419419
<template>
420420
<div class="relative overflow-hidden">
421-
<VueLenis ref="lenisRef" class="h-screen overflow-y-scroll px-4">
421+
<VueLenis ref="lenisRef" class="overflow-y-scroll px-4 h-dvh">
422422
<ChatInterfaceBackground v-bind="{ messages, isFetching }" />
423423
<div class="mx-auto h-full max-w-full lg:max-w-4xl">
424424
<div v-if="messages.length" class="relative z-2 space-y-4">

apps/frontend/app/components/chat/interface/ChatInterfaceBackground.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const chatContext = useChatContext()
2020

2121
<div
2222
v-show="!messages.length && !isFetching"
23-
class="absolute left-0 z-0 h-screen w-full place-content-center overflow-hidden transition-height"
23+
class="absolute left-0 z-0 w-full place-content-center overflow-hidden transition-height h-dvh"
2424
>
2525
<IUIMaybeGlassCard
2626
v-if="!messages.length"

apps/frontend/app/layouts/basic.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const title = computed(() => route.meta.title && t(route.meta.title))
2424
</Head>
2525

2626
<Body>
27-
<div class="min-h-screen w-full flex flex-col">
27+
<div class="w-full flex flex-col min-h-dvh">
2828
<!-- NuxtPage -->
2929
<div id="app-body" class="flex grow">
3030
<slot />

apps/frontend/app/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ watch(() => route.name, () => { windowsScroll.measure() })
2828
</Head>
2929

3030
<Body>
31-
<div class="min-h-screen w-full flex flex-col">
31+
<div class="w-full flex flex-col min-h-dvh">
3232
<!-- Header -->
3333
<DefaultHeader
3434
v-motion-slide-visible-once-left

apps/frontend/app/lib/shadcn/components/ui/toast/ToastViewport.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ const delegatedProps = reactiveOmit(props, 'class')
1010
</script>
1111

1212
<template>
13-
<ToastViewport v-bind="delegatedProps" :class="cn('fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]', props.class)" />
13+
<ToastViewport v-bind="delegatedProps" :class="cn('fixed top-0 z-[100] flex max-h-dvh w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]', props.class)" />
1414
</template>

0 commit comments

Comments
 (0)