fix: 修复推荐列表 ListEmptyComponent 条件、epCard offset 偏移和双边框问题

This commit is contained in:
Developer
2026-03-24 23:57:03 +08:00
parent bfca7a1ff2
commit d84e2de5a1

View File

@@ -245,8 +245,6 @@ export default function VideoDetailScreen() {
style={[ style={[
styles.relatedCard, styles.relatedCard,
{ {
borderTopWidth: StyleSheet.hairlineWidth,
borderTopColor: theme.border,
backgroundColor: theme.card, backgroundColor: theme.card,
borderBottomColor: theme.border, borderBottomColor: theme.border,
}, },
@@ -296,7 +294,7 @@ export default function VideoDetailScreen() {
</TouchableOpacity> </TouchableOpacity>
)} )}
ListEmptyComponent={ ListEmptyComponent={
!relatedLoading ? ( relatedLoading ? (
<ActivityIndicator style={styles.loader} color="#00AEEC" /> <ActivityIndicator style={styles.loader} color="#00AEEC" />
) : null ) : null
} }
@@ -449,7 +447,7 @@ function SeasonSection({
contentContainerStyle={{ paddingHorizontal: 12, gap: 10 }} contentContainerStyle={{ paddingHorizontal: 12, gap: 10 }}
getItemLayout={(_data, index) => ({ getItemLayout={(_data, index) => ({
length: 130, length: 130,
offset: 12 + index * 130, offset: 12 + index * 140,
index, index,
})} })}
onScrollToIndexFailed={() => {}} onScrollToIndexFailed={() => {}}