about summary refs log tree commit diff
path: root/src/view/com/util/Views.web.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-02-24 10:10:21 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-02-24 10:10:21 -0600
commitfa115c1cba0a4d0ab453961ee02fd9702c2517be (patch)
tree46375646e611d207a6b64bab303912e853360123 /src/view/com/util/Views.web.tsx
parent3e197286188f2d5220afc23d010542af25457883 (diff)
downloadvoidsky-fa115c1cba0a4d0ab453961ee02fd9702c2517be.tar.zst
Fix region sizing on web
Diffstat (limited to 'src/view/com/util/Views.web.tsx')
-rw-r--r--src/view/com/util/Views.web.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/util/Views.web.tsx b/src/view/com/util/Views.web.tsx
index 3d9abd893..1ffd7844c 100644
--- a/src/view/com/util/Views.web.tsx
+++ b/src/view/com/util/Views.web.tsx
@@ -23,6 +23,7 @@ import {
   ViewProps,
 } from 'react-native'
 import {addStyle, colors} from 'lib/styles'
+import {DESKTOP_HEADER_HEIGHT} from 'lib/constants'
 
 export function CenteredView({
   style,
@@ -78,7 +79,7 @@ const styles = StyleSheet.create({
   },
   containerScroll: {
     width: '100%',
-    height: '100%',
+    height: `calc(100vh - ${DESKTOP_HEADER_HEIGHT}px)`,
     maxWidth: 600,
     marginLeft: 'auto',
     marginRight: 'auto',