Fixes & updates for mobile web
parent
651f3abc1f
commit
0a1f912ece
|
@ -10,7 +10,7 @@ import {StyleSheet, View, ScrollView} from 'react-native'
|
||||||
import {Text} from '../util/text/Text'
|
import {Text} from '../util/text/Text'
|
||||||
import {PressableWithHover} from '../util/PressableWithHover'
|
import {PressableWithHover} from '../util/PressableWithHover'
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
import {isDesktopWeb} from 'platform/detection'
|
import {isDesktopWeb, isMobileWeb} from 'platform/detection'
|
||||||
import {DraggableScrollView} from './DraggableScrollView'
|
import {DraggableScrollView} from './DraggableScrollView'
|
||||||
|
|
||||||
export interface TabBarProps {
|
export interface TabBarProps {
|
||||||
|
@ -132,14 +132,15 @@ const styles = isDesktopWeb
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
},
|
},
|
||||||
contentContainer: {
|
contentContainer: {
|
||||||
columnGap: 20,
|
columnGap: isMobileWeb ? 0 : 20,
|
||||||
marginLeft: 18,
|
marginLeft: isMobileWeb ? 0 : 18,
|
||||||
paddingRight: 36,
|
paddingRight: isMobileWeb ? 0 : 36,
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
paddingTop: 10,
|
paddingTop: 10,
|
||||||
paddingBottom: 10,
|
paddingBottom: 10,
|
||||||
|
paddingHorizontal: isMobileWeb ? 8 : 0,
|
||||||
borderBottomWidth: 3,
|
borderBottomWidth: 3,
|
||||||
borderBottomColor: 'transparent',
|
borderBottomColor: 'transparent',
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,6 +15,8 @@ import {
|
||||||
HomeIconSolid,
|
HomeIconSolid,
|
||||||
MagnifyingGlassIcon2,
|
MagnifyingGlassIcon2,
|
||||||
MagnifyingGlassIcon2Solid,
|
MagnifyingGlassIcon2Solid,
|
||||||
|
SatelliteDishIcon,
|
||||||
|
SatelliteDishIconSolid,
|
||||||
UserIcon,
|
UserIcon,
|
||||||
} from 'lib/icons'
|
} from 'lib/icons'
|
||||||
import {Link} from 'view/com/util/Link'
|
import {Link} from 'view/com/util/Link'
|
||||||
|
@ -61,6 +63,18 @@ export const BottomBarWeb = observer(() => {
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</NavItem>
|
</NavItem>
|
||||||
|
<NavItem routeName="Feeds" href="/feeds">
|
||||||
|
{({isActive}) => {
|
||||||
|
const Icon = isActive ? SatelliteDishIconSolid : SatelliteDishIcon
|
||||||
|
return (
|
||||||
|
<Icon
|
||||||
|
size={25}
|
||||||
|
style={[styles.ctrlIcon, pal.text, styles.searchIcon]}
|
||||||
|
strokeWidth={1.8}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
</NavItem>
|
||||||
<NavItem routeName="Notifications" href="/notifications">
|
<NavItem routeName="Notifications" href="/notifications">
|
||||||
{({isActive}) => {
|
{({isActive}) => {
|
||||||
const Icon = isActive ? BellIconSolid : BellIcon
|
const Icon = isActive ? BellIconSolid : BellIcon
|
||||||
|
|
Loading…
Reference in New Issue