Move border positioning to FlatList and ScrollView (#509)

* Move border positioning to FlatList and ScrollView

* Fix mobile web tab bar border
This commit is contained in:
Ollie Hsieh 2023-04-21 14:40:41 -07:00 committed by GitHub
parent f0706dbe9f
commit aa56f4a5e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 34 deletions

View file

@ -14,11 +14,9 @@ import {RoutesContainer, FlatNavigator} from '../../Navigation'
import {DrawerContent} from './Drawer'
import {useWebMediaQueries} from '../../lib/hooks/useWebMediaQueries'
import {BottomBarWeb} from './bottom-bar/BottomBarWeb'
import {usePalette} from 'lib/hooks/usePalette'
const ShellInner = observer(() => {
const store = useStores()
const pal = usePalette('default')
const {isDesktop} = useWebMediaQueries()
return (
@ -32,20 +30,6 @@ const ShellInner = observer(() => {
<>
<DesktopLeftNav />
<DesktopRightNav />
<View
style={[
styles.viewBorder,
{borderLeftColor: pal.colors.border},
styles.viewBorderLeft,
]}
/>
<View
style={[
styles.viewBorder,
{borderLeftColor: pal.colors.border},
styles.viewBorderRight,
]}
/>
</>
)}
<Composer
@ -90,18 +74,6 @@ const styles = StyleSheet.create({
bgDark: {
backgroundColor: colors.black, // TODO
},
viewBorder: {
position: 'absolute',
width: 1,
height: '100%',
borderLeftWidth: 1,
},
viewBorderLeft: {
left: 'calc(50vw - 300px)',
},
viewBorderRight: {
left: 'calc(50vw + 300px)',
},
drawerMask: {
position: 'absolute',
width: '100%',