Fix horizontal padding of tab within profile header (#3924)
Co-authored-by: Hailey <me@haileyok.com>zio/stable
parent
bd1e6fced9
commit
2540616f43
|
@ -1,11 +1,12 @@
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import {FlatList, ScrollView, StyleSheet, View} from 'react-native'
|
import {FlatList, ScrollView, StyleSheet, View} from 'react-native'
|
||||||
import {useAnimatedRef} from 'react-native-reanimated'
|
import {useAnimatedRef} from 'react-native-reanimated'
|
||||||
import {Pager, PagerRef, RenderTabBarFnProps} from 'view/com/pager/Pager'
|
|
||||||
import {TabBar} from './TabBar'
|
|
||||||
import {usePalette} from '#/lib/hooks/usePalette'
|
import {usePalette} from '#/lib/hooks/usePalette'
|
||||||
import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
|
import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
|
||||||
|
import {Pager, PagerRef, RenderTabBarFnProps} from 'view/com/pager/Pager'
|
||||||
import {ListMethods} from '../util/List'
|
import {ListMethods} from '../util/List'
|
||||||
|
import {TabBar} from './TabBar'
|
||||||
|
|
||||||
export interface PagerWithHeaderChildParams {
|
export interface PagerWithHeaderChildParams {
|
||||||
headerHeight: number
|
headerHeight: number
|
||||||
|
@ -184,8 +185,7 @@ function PagerItem({
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
headerContainerDesktop: {
|
headerContainerDesktop: {
|
||||||
marginLeft: 'auto',
|
marginHorizontal: 'auto',
|
||||||
marginRight: 'auto',
|
|
||||||
width: 600,
|
width: 600,
|
||||||
borderLeftWidth: 1,
|
borderLeftWidth: 1,
|
||||||
borderRightWidth: 1,
|
borderRightWidth: 1,
|
||||||
|
@ -198,15 +198,14 @@ const styles = StyleSheet.create({
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
},
|
},
|
||||||
tabBarContainerDesktop: {
|
tabBarContainerDesktop: {
|
||||||
marginLeft: 'auto',
|
marginHorizontal: 'auto',
|
||||||
marginRight: 'auto',
|
paddingHorizontal: 2,
|
||||||
width: 600,
|
width: 600,
|
||||||
borderLeftWidth: 1,
|
borderLeftWidth: 1,
|
||||||
borderRightWidth: 1,
|
borderRightWidth: 1,
|
||||||
},
|
},
|
||||||
tabBarContainerMobile: {
|
tabBarContainerMobile: {
|
||||||
paddingLeft: 14,
|
paddingHorizontal: 0,
|
||||||
paddingRight: 14,
|
|
||||||
},
|
},
|
||||||
loadingHeader: {
|
loadingHeader: {
|
||||||
borderColor: 'transparent',
|
borderColor: 'transparent',
|
||||||
|
|
|
@ -191,7 +191,7 @@ const mobileStyles = StyleSheet.create({
|
||||||
},
|
},
|
||||||
contentContainer: {
|
contentContainer: {
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
paddingHorizontal: 8,
|
paddingHorizontal: 6,
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
paddingTop: 10,
|
paddingTop: 10,
|
||||||
|
|
Loading…
Reference in New Issue