Clean up 1

This commit is contained in:
Dan Abramov
2023-12-07 22:20:06 +00:00
parent 8b23b73aec
commit 113e70e176
4 changed files with 12 additions and 3 deletions
+6 -1
View File
@@ -30,6 +30,7 @@ import {colors} from 'lib/styles'
import {isNative} from 'platform/detection'
import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle'
import {router} from './routes'
import {s} from 'lib/styles'
import {usePalette} from 'lib/hooks/usePalette'
import {bskyTitle} from 'lib/strings/headings'
import {JSX} from 'react/jsx-runtime'
@@ -394,7 +395,7 @@ const FlatNavigator = () => {
fullScreenGestureEnabled: true,
headerShown: false,
animationDuration: 250,
contentStyle: [pal.view, {flex: 'none'}],
contentStyle: [pal.view, styles.webContainer],
}}>
<Flat.Screen
name="Home"
@@ -592,6 +593,10 @@ function handleLink(url: string) {
}
const styles = StyleSheet.create({
webContainer: {
// @ts-ignore web-only
flex: '',
},
bgDark: {
backgroundColor: colors.black,
},
@@ -12,6 +12,10 @@ export const styles = StyleSheet.create({
paddingLeft: 5,
paddingRight: 10,
},
bottomBarWeb: {
// @ts-ignore web-only
position: 'fixed',
},
ctrl: {
flex: 1,
paddingTop: 13,
+1 -1
View File
@@ -33,11 +33,11 @@ export function BottomBarWeb() {
<Animated.View
style={[
styles.bottomBar,
styles.bottomBarWeb,
pal.view,
pal.border,
{paddingBottom: clamp(safeAreaInsets.bottom, 15, 30)},
footerMinimalShellTransform,
{position: 'fixed'},
]}>
<NavItem routeName="Home" href="/">
{({isActive}) => {
+1 -1
View File
@@ -33,7 +33,7 @@ function ShellInner() {
}, [navigator, closeAllActiveElements])
return (
<View style={[s.hContentRegion]}>
<View style={s.hContentRegion}>
<View style={s.hContentRegion}>
<ErrorBoundary>
<FlatNavigator />