about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-07-18 16:46:22 -0500
committerGitHub <noreply@github.com>2023-07-18 16:46:22 -0500
commita6bb38ee5194c1b7f423f18a755e293b0f0d51bd (patch)
tree30cec1becc1dba95935c120afb8c17d09d7cc094 /src
parent8a66af11ae624b4b49c6bfb7718ee3da306fd7d1 (diff)
parent9ef54814f08a7a5ee840a8016c7dc37e9e96fb97 (diff)
downloadvoidsky-a6bb38ee5194c1b7f423f18a755e293b0f0d51bd.tar.zst
Merge pull request #1032 from bluesky-social/fix-1001-modal-scrolling
#1001 Modal content overflow
Diffstat (limited to 'src')
-rw-r--r--src/view/shell/Composer.web.tsx6
-rw-r--r--src/view/shell/bottom-bar/BottomBarStyles.tsx3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/view/shell/Composer.web.tsx b/src/view/shell/Composer.web.tsx
index 1f458472c..7eb16290a 100644
--- a/src/view/shell/Composer.web.tsx
+++ b/src/view/shell/Composer.web.tsx
@@ -5,6 +5,7 @@ import {ComposePost} from '../com/composer/Composer'
 import {ComposerOpts} from 'state/models/ui/shell'
 import {usePalette} from 'lib/hooks/usePalette'
 import {isMobileWeb} from 'platform/detection'
+import {BOTTOM_BAR_HEIGHT} from 'view/shell/bottom-bar/BottomBarStyles'
 
 export const Composer = observer(
   ({
@@ -62,7 +63,10 @@ const styles = StyleSheet.create({
     paddingVertical: 0,
     paddingHorizontal: 2,
     borderRadius: isMobileWeb ? 0 : 8,
-    marginBottom: '10vh',
+    marginBottom: isMobileWeb ? BOTTOM_BAR_HEIGHT : 0,
     borderWidth: 1,
+    maxHeight: isMobileWeb
+      ? `calc(100% - ${BOTTOM_BAR_HEIGHT}px)`
+      : 'calc(100% - (40px * 2))',
   },
 })
diff --git a/src/view/shell/bottom-bar/BottomBarStyles.tsx b/src/view/shell/bottom-bar/BottomBarStyles.tsx
index f31ab44cf..91d285e47 100644
--- a/src/view/shell/bottom-bar/BottomBarStyles.tsx
+++ b/src/view/shell/bottom-bar/BottomBarStyles.tsx
@@ -1,8 +1,11 @@
 import {StyleSheet} from 'react-native'
 import {colors} from 'lib/styles'
 
+export const BOTTOM_BAR_HEIGHT = 61
+
 export const styles = StyleSheet.create({
   bottomBar: {
+    height: BOTTOM_BAR_HEIGHT,
     position: 'absolute',
     bottom: 0,
     left: 0,