Layout fixes

This commit is contained in:
Dan Abramov
2023-12-22 22:38:33 +00:00
parent a76746d3c7
commit af254768a4
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ import {ErrorMessage} from '../com/util/error/ErrorMessage'
import {CenteredView} from '../com/util/Views' import {CenteredView} from '../com/util/Views'
import {useComposerControls} from '#/state/shell/composer' import {useComposerControls} from '#/state/shell/composer'
import {useSession} from '#/state/session' import {useSession} from '#/state/session'
import {isWeb} from '#/platform/detection'
type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostThread'> type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostThread'>
export function PostThreadScreen({route}: Props) { export function PostThreadScreen({route}: Props) {
@@ -109,7 +110,7 @@ export function PostThreadScreen({route}: Props) {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
prompt: { prompt: {
position: 'absolute', position: isWeb ? 'fixed' : 'absolute',
left: 0, left: 0,
right: 0, right: 0,
}, },
+1 -1
View File
@@ -518,7 +518,7 @@ export function SearchScreenMobile(
) )
return ( return (
<View style={{flex: 1}}> <View style={isWeb ? null : {flex: 1}}>
<CenteredView <CenteredView
style={[styles.header, pal.view, styles.container]} style={[styles.header, pal.view, styles.container]}
sideBorders={isTablet}> sideBorders={isTablet}>