Fix composer

This commit is contained in:
Dan Abramov
2023-12-08 00:16:28 +00:00
parent 86ed4b8f6a
commit 6b9aaa7726
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
import {clamp} from 'lib/numbers'
import {useMinimalShellMode} from 'lib/hooks/useMinimalShellMode'
import {isWeb} from '#/platform/detection'
import Animated from 'react-native-reanimated'
export interface FABProps
@@ -64,7 +65,7 @@ const styles = StyleSheet.create({
borderRadius: 35,
},
outer: {
position: 'absolute',
position: isWeb ? 'fixed' : 'absolute',
zIndex: 1,
},
inner: {
+2 -1
View File
@@ -49,7 +49,8 @@ export function Composer({}: {winHeight: number}) {
const styles = StyleSheet.create({
mask: {
position: 'absolute',
// @ts-ignore
position: 'fixed',
top: 0,
left: 0,
width: '100%',