Skip to content

Commit

Permalink
fix: use dvh instead of vh to define screen height
Browse files Browse the repository at this point in the history
  • Loading branch information
ericknathan committed Sep 24, 2023
1 parent 7b213ef commit fdb5f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/app/components/organisms/DefaultAside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ watch(isLesson, async () => {

<template>
<aside
class="bg-white z-20 md:z-0 md:bg-inherit fixed -left-[270px] transition-all top-0 h-screen overflow-y-auto md:relative md:left-0 flex w-[270px] min-w-[270px] flex-col border-r border-solid border-zinc-200 overflow-hidden"
class="bg-white z-20 md:z-0 md:bg-inherit fixed -left-[270px] transition-all top-0 h-full overflow-y-auto md:relative md:left-0 flex w-[270px] min-w-[270px] flex-col border-r border-solid border-zinc-200 overflow-hidden"
:class="{ 'left-0': defaultAsideStore.opened }"
>
<div class="w-full border-b border-solid border-zinc-200 p-3">
Expand Down
2 changes: 1 addition & 1 deletion apps/app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ onMounted(() => {
</script>

<template>
<div class="flex h-screen w-full overflow-hidden">
<div class="flex h-[100dvh] w-full overflow-hidden">
<DefaultAside />
<div
v-show="defaultAsideStore.opened"
Expand Down

0 comments on commit fdb5f8e

Please sign in to comment.