mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-08 07:28:37 +08:00
fix: 修复推荐列表 ListEmptyComponent 条件、epCard offset 偏移和双边框问题
This commit is contained in:
@@ -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={() => {}}
|
||||||
|
|||||||
Reference in New Issue
Block a user