diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-25 20:27:55 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-05-25 20:27:55 -0500 |
commit | 0a1f912ece10c28a975c91359c61bd000f9af909 (patch) | |
tree | 5a4460220e599ad1da3de32f1bbcb377967b83d2 /src/view/com/pager/TabBar.tsx | |
parent | 651f3abc1ff0913347ed7bfb824f8e280f87a850 (diff) | |
download | voidsky-0a1f912ece10c28a975c91359c61bd000f9af909.tar.zst |
Fixes & updates for mobile web
Diffstat (limited to 'src/view/com/pager/TabBar.tsx')
-rw-r--r-- | src/view/com/pager/TabBar.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/view/com/pager/TabBar.tsx b/src/view/com/pager/TabBar.tsx index 422d986a7..d7121fde9 100644 --- a/src/view/com/pager/TabBar.tsx +++ b/src/view/com/pager/TabBar.tsx @@ -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', }, |