优化比赛详情页面和网球力量图组件的代码格式

This commit is contained in:
yuchenglong
2026-01-23 13:43:24 +08:00
parent 0ec996408f
commit dad06dd27d
2 changed files with 35 additions and 21 deletions

View File

@@ -110,7 +110,8 @@ export function TennisPowerGraph({ match, isDark }: TennisPowerGraphProps) {
<View style={styles.contentRow}>
{/* Sidebar - Avatars */}
<View style={styles.sidebar}>
<View style={{ flex: 1 }} /> {/* Spacer top */}
{/* Spacer top */}
<View style={{ flex: 1 }} />
<View style={styles.avatarContainer}>
{p1Logo ? (
<Image source={{ uri: p1Logo }} style={styles.avatar} />
@@ -118,7 +119,7 @@ export function TennisPowerGraph({ match, isDark }: TennisPowerGraphProps) {
<View style={[styles.avatar, { backgroundColor: "#ccc" }]} />
)}
</View>
<View style={{ height: 10 }} />{" "}
<View style={{ height: 10 }} />
{/* Gap corresponding to center line if needed, but styling is easier with even spacing */}
<View style={styles.avatarContainer}>
{p2Logo ? (
@@ -127,7 +128,8 @@ export function TennisPowerGraph({ match, isDark }: TennisPowerGraphProps) {
<View style={[styles.avatar, { backgroundColor: "#ccc" }]} />
)}
</View>
<View style={{ flex: 1 }} /> {/* Spacer bottom */}
{/* Spacer bottom */}
<View style={{ flex: 1 }} />
</View>
{/* Scrollable Graph */}