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 {isNative} from 'platform/detection'
import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle' import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle'
import {router} from './routes' import {router} from './routes'
import {s} from 'lib/styles'
import {usePalette} from 'lib/hooks/usePalette' import {usePalette} from 'lib/hooks/usePalette'
import {bskyTitle} from 'lib/strings/headings' import {bskyTitle} from 'lib/strings/headings'
import {JSX} from 'react/jsx-runtime' import {JSX} from 'react/jsx-runtime'
@@ -394,7 +395,7 @@ const FlatNavigator = () => {
fullScreenGestureEnabled: true, fullScreenGestureEnabled: true,
headerShown: false, headerShown: false,
animationDuration: 250, animationDuration: 250,
contentStyle: [pal.view, {flex: 'none'}], contentStyle: [pal.view, styles.webContainer],
}}> }}>
<Flat.Screen <Flat.Screen
name="Home" name="Home"
@@ -592,6 +593,10 @@ function handleLink(url: string) {
} }
const styles = StyleSheet.create({ const styles = StyleSheet.create({
webContainer: {
// @ts-ignore web-only
flex: '',
},
bgDark: { bgDark: {
backgroundColor: colors.black, backgroundColor: colors.black,
}, },
@@ -12,6 +12,10 @@ export const styles = StyleSheet.create({
paddingLeft: 5, paddingLeft: 5,
paddingRight: 10, paddingRight: 10,
}, },
bottomBarWeb: {
// @ts-ignore web-only
position: 'fixed',
},
ctrl: { ctrl: {
flex: 1, flex: 1,
paddingTop: 13, paddingTop: 13,
+1 -1
View File
@@ -33,11 +33,11 @@ export function BottomBarWeb() {
<Animated.View <Animated.View
style={[ style={[
styles.bottomBar, styles.bottomBar,
styles.bottomBarWeb,
pal.view, pal.view,
pal.border, pal.border,
{paddingBottom: clamp(safeAreaInsets.bottom, 15, 30)}, {paddingBottom: clamp(safeAreaInsets.bottom, 15, 30)},
footerMinimalShellTransform, footerMinimalShellTransform,
{position: 'fixed'},
]}> ]}>
<NavItem routeName="Home" href="/"> <NavItem routeName="Home" href="/">
{({isActive}) => { {({isActive}) => {
+1 -1
View File
@@ -33,7 +33,7 @@ function ShellInner() {
}, [navigator, closeAllActiveElements]) }, [navigator, closeAllActiveElements])
return ( return (
<View style={[s.hContentRegion]}> <View style={s.hContentRegion}>
<View style={s.hContentRegion}> <View style={s.hContentRegion}>
<ErrorBoundary> <ErrorBoundary>
<FlatNavigator /> <FlatNavigator />