wide
This commit is contained in:
@@ -287,7 +287,7 @@ export function TabBar({
|
||||
onLayout={e => {
|
||||
contentSize.set(e.nativeEvent.layout.width)
|
||||
}}
|
||||
style={{flexDirection: 'row'}}>
|
||||
style={{flexDirection: 'row', flexGrow: 1}}>
|
||||
{items.map((item, i) => {
|
||||
return (
|
||||
<TabBarItem
|
||||
@@ -359,7 +359,7 @@ function TabBarItem({
|
||||
)
|
||||
|
||||
return (
|
||||
<View onLayout={handleLayout}>
|
||||
<View onLayout={handleLayout} style={{flexGrow: 1}}>
|
||||
<PressableWithHover
|
||||
testID={`${testID}-selector-${index}`}
|
||||
style={styles.item}
|
||||
@@ -385,15 +385,19 @@ const styles = StyleSheet.create({
|
||||
flexDirection: 'row',
|
||||
},
|
||||
contentContainer: {
|
||||
flexGrow: 1,
|
||||
backgroundColor: 'transparent',
|
||||
paddingHorizontal: CONTENT_PADDING,
|
||||
},
|
||||
item: {
|
||||
flexGrow: 1,
|
||||
paddingTop: 10,
|
||||
paddingHorizontal: ITEM_PADDING,
|
||||
justifyContent: 'center',
|
||||
},
|
||||
itemInner: {
|
||||
alignItems: 'center',
|
||||
flexGrow: 1,
|
||||
paddingBottom: 10,
|
||||
borderBottomWidth: 3,
|
||||
borderBottomColor: 'transparent',
|
||||
|
||||
@@ -142,15 +142,19 @@ const desktopStyles = StyleSheet.create({
|
||||
width: 598,
|
||||
},
|
||||
contentContainer: {
|
||||
flexGrow: 1,
|
||||
paddingHorizontal: 0,
|
||||
backgroundColor: 'transparent',
|
||||
},
|
||||
item: {
|
||||
flexGrow: 1,
|
||||
alignItems: 'stretch',
|
||||
paddingTop: 14,
|
||||
paddingHorizontal: 14,
|
||||
justifyContent: 'center',
|
||||
},
|
||||
itemInner: {
|
||||
alignItems: 'center',
|
||||
paddingBottom: 12,
|
||||
borderBottomWidth: 3,
|
||||
borderBottomColor: 'transparent',
|
||||
@@ -169,15 +173,20 @@ const mobileStyles = StyleSheet.create({
|
||||
flexDirection: 'row',
|
||||
},
|
||||
contentContainer: {
|
||||
flexGrow: 1,
|
||||
backgroundColor: 'transparent',
|
||||
paddingHorizontal: 6,
|
||||
},
|
||||
item: {
|
||||
flexGrow: 1,
|
||||
alignItems: 'stretch',
|
||||
paddingTop: 10,
|
||||
paddingHorizontal: 10,
|
||||
justifyContent: 'center',
|
||||
},
|
||||
itemInner: {
|
||||
flexGrow: 1,
|
||||
alignItems: 'center',
|
||||
paddingBottom: 10,
|
||||
borderBottomWidth: 3,
|
||||
borderBottomColor: 'transparent',
|
||||
|
||||
Reference in New Issue
Block a user