header alignment changes for trakt collections

This commit is contained in:
tapframe 2025-07-07 19:32:29 +05:30
parent af0fbb740d
commit eec96b09d2

View file

@ -883,7 +883,7 @@ const LibraryScreen = () => {
<View style={{ flex: 1 }}> <View style={{ flex: 1 }}>
{/* Header Section with proper top spacing */} {/* Header Section with proper top spacing */}
<View style={[styles.header, { height: headerHeight, paddingTop: topSpacing }]}> <View style={[styles.header, { height: headerHeight, paddingTop: topSpacing }]}>
<View style={styles.headerContent}> <View style={[styles.headerContent, showTraktContent && { justifyContent: 'flex-start' }]}>
{showTraktContent ? ( {showTraktContent ? (
<> <>
<TouchableOpacity <TouchableOpacity
@ -903,15 +903,12 @@ const LibraryScreen = () => {
color={currentTheme.colors.white} color={currentTheme.colors.white}
/> />
</TouchableOpacity> </TouchableOpacity>
<View style={styles.headerTitleContainer}> <Text style={[styles.headerTitle, { color: currentTheme.colors.white, fontSize: 24, marginLeft: 16 }]}>
<Text style={[styles.headerTitle, { color: currentTheme.colors.white }]}>
{selectedTraktFolder {selectedTraktFolder
? traktFolders.find(f => f.id === selectedTraktFolder)?.name || 'Collection' ? traktFolders.find(f => f.id === selectedTraktFolder)?.name || 'Collection'
: 'Trakt Collection' : 'Trakt Collection'
} }
</Text> </Text>
</View>
<View style={styles.headerSpacer} />
</> </>
) : ( ) : (
<> <>