Fixes & updates for mobile web
This commit is contained in:
parent
651f3abc1f
commit
0a1f912ece
2 changed files with 19 additions and 4 deletions
|
@ -10,7 +10,7 @@ import {StyleSheet, View, ScrollView} from 'react-native'
|
|||
import {Text} from '../util/text/Text'
|
||||
import {PressableWithHover} from '../util/PressableWithHover'
|
||||
import {usePalette} from 'lib/hooks/usePalette'
|
||||
import {isDesktopWeb} from 'platform/detection'
|
||||
import {isDesktopWeb, isMobileWeb} from 'platform/detection'
|
||||
import {DraggableScrollView} from './DraggableScrollView'
|
||||
|
||||
export interface TabBarProps {
|
||||
|
@ -132,14 +132,15 @@ const styles = isDesktopWeb
|
|||
backgroundColor: 'transparent',
|
||||
},
|
||||
contentContainer: {
|
||||
columnGap: 20,
|
||||
marginLeft: 18,
|
||||
paddingRight: 36,
|
||||
columnGap: isMobileWeb ? 0 : 20,
|
||||
marginLeft: isMobileWeb ? 0 : 18,
|
||||
paddingRight: isMobileWeb ? 0 : 36,
|
||||
backgroundColor: 'transparent',
|
||||
},
|
||||
item: {
|
||||
paddingTop: 10,
|
||||
paddingBottom: 10,
|
||||
paddingHorizontal: isMobileWeb ? 8 : 0,
|
||||
borderBottomWidth: 3,
|
||||
borderBottomColor: 'transparent',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue