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 aeb0a98
Show file tree
Hide file tree
Showing 2 changed files with 5 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
4 changes: 4 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
theme: {
...tailwindTheme,
extend: {

screens: {
desktop: tailwindTheme.screens[DESKTOP_LAYOUT],
},
Expand All @@ -21,6 +22,9 @@ module.exports = {
4.5: '18px',
6.5: '26px',
},
height: {
screen: ['100dvh', '100vh'],
},
overflow: {
initial: 'initial',
},
Expand Down

0 comments on commit aeb0a98

Please sign in to comment.