about summary refs log tree commit diff
path: root/src/lib/styles.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/styles.ts')
-rw-r--r--src/lib/styles.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/styles.ts b/src/lib/styles.ts
index db6c03606..dd3c86910 100644
--- a/src/lib/styles.ts
+++ b/src/lib/styles.ts
@@ -1,5 +1,7 @@
 import {StyleProp, StyleSheet, TextStyle} from 'react-native'
 import {Theme, TypographyVariant} from './ThemeContext'
+import {isDesktopWeb} from 'platform/detection'
+import {DESKTOP_HEADER_HEIGHT} from './constants'
 
 // 1 is lightest, 2 is light, 3 is mid, 4 is dark, 5 is darkest
 export const colors = {
@@ -150,6 +152,9 @@ export const s = StyleSheet.create({
   // dimensions
   w100pct: {width: '100%'},
   h100pct: {height: '100%'},
+  hContentRegion: isDesktopWeb
+    ? {height: `calc(100vh - ${DESKTOP_HEADER_HEIGHT}px)`}
+    : {height: '100%'},
 
   // text align
   textLeft: {textAlign: 'left'},