fix: 调整睡眠阶段图表的宽度和边距,优化标签显示逻辑

This commit is contained in:
richarjiang
2025-09-10 19:20:05 +08:00
parent 6fbdbafa3e
commit aee87e8900
2 changed files with 13 additions and 11 deletions

View File

@@ -305,10 +305,10 @@ export default function SleepDetailScreen() {
</View>
{/* 睡眠阶段图表 */}
<SleepStageChart
{/* <SleepStageChart
sleepData={displayData}
onInfoPress={() => setSleepStagesModal({ visible: true })}
/>
/> */}
{/* 苹果健康风格的睡眠阶段时间轴图表 */}
<SleepStageTimeline
@@ -387,7 +387,7 @@ export default function SleepDetailScreen() {
</View>
{/* Raw Sleep Samples List - 显示所有原始睡眠数据 */}
{sleepData && sleepData.rawSleepSamples && sleepData.rawSleepSamples.length > 1 && (
{sleepData && sleepData.rawSleepSamples && sleepData.rawSleepSamples.length > 100 && (
<View style={[styles.rawSamplesContainer, { backgroundColor: colorTokens.background }]}>
<View style={styles.rawSamplesHeader}>
<Text style={[styles.rawSamplesTitle, { color: colorTokens.text }]}>