Skip to content

Commit

Permalink
Use 100dvh in h-screen. As a fallback use 100vh
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Sep 7, 2023
1 parent ed80889 commit 2d3b899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MobileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ watch(selectedUuid, (uuid) => {
</script>

<template>
<div class="flex flex-col h-screen min-h-[100dvh] max-h-[100dvh]">
<div class="flex flex-col h-screen">
<InteractionBar />
<TheMapInstance class="relative flex-1" />
<!-- Shadow -->
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module.exports = {
4.5: '18px',
6.5: '26px',
},
height: {
screen: ['100dvh', '100vh'],
},
overflow: {
initial: 'initial',
},
Expand Down

0 comments on commit 2d3b899

Please sign in to comment.