From 836b2ceb28a6b73039efe48ce74fdaf7f835eef9 Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 10 Mar 2026 21:14:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AB=E8=A1=8C=E5=8D=95=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=B1=85=E4=B8=AD=20+=20=E5=8D=A1=E7=89=87=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - columnWrapperStyle justifyContent 改为 flex-start,末行单卡片靠左 - title 固定 height: 32px(2行 × lineHeight 16), 使每张卡片 info 区高度相同,消除高度不一致 --- app/index.tsx | 2 +- components/VideoCard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/index.tsx b/app/index.tsx index d19427f..d42ab6a 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -161,7 +161,7 @@ const styles = StyleSheet.create({ backgroundColor: '#00AEEC', borderRadius: 1, }, - row: { paddingHorizontal: 8, justifyContent:'center' }, + row: { paddingHorizontal: 8, justifyContent: 'flex-start' }, leftCol: { marginLeft: 4, marginRight: 2 }, rightCol: { marginLeft: 2, marginRight: 4 }, footer: { height: 48, alignItems: 'center', justifyContent: 'center' }, diff --git a/components/VideoCard.tsx b/components/VideoCard.tsx index caaa040..4ad9df1 100644 --- a/components/VideoCard.tsx +++ b/components/VideoCard.tsx @@ -45,7 +45,7 @@ const styles = StyleSheet.create({ durationBadge: { position: 'absolute', bottom: 4, right: 4, backgroundColor: 'rgba(0,0,0,0.6)', borderRadius: 3, paddingHorizontal: 4, paddingVertical: 1 }, durationText: { color: '#fff', fontSize: 10 }, info: { padding: 6 }, - title: { fontSize: 12, color: '#212121', lineHeight: 16, marginBottom: 4 }, + title: { fontSize: 12, color: '#212121', lineHeight: 16, height: 32, marginBottom: 4 }, meta: { flexDirection: 'row', alignItems: 'center', gap: 2 }, metaText: { fontSize: 11, color: '#999' }, owner: { fontSize: 11, color: '#999', marginTop: 2 },