fix: 调整用户体重卡片样式,优化动画容器高度和字体大小
This commit is contained in:
@@ -52,7 +52,6 @@ export function WeightHistoryCard() {
|
||||
const themeColors = Colors[colorScheme ?? 'light'];
|
||||
|
||||
const hasWeight = userProfile?.weight && parseFloat(userProfile.weight) > 0;
|
||||
const hasHeight = userProfile?.height && parseFloat(userProfile.height) > 0;
|
||||
|
||||
// BMI 计算
|
||||
const canCalculate = canCalculateBMI(
|
||||
@@ -632,12 +631,12 @@ const styles = StyleSheet.create({
|
||||
animationContainer: {
|
||||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
minHeight: 40,
|
||||
minHeight: 50,
|
||||
},
|
||||
summaryInfo: {
|
||||
position: 'absolute',
|
||||
width: '100%',
|
||||
marginTop: 10,
|
||||
marginTop: 8,
|
||||
},
|
||||
chartContainer: {
|
||||
position: 'absolute',
|
||||
@@ -682,13 +681,14 @@ const styles = StyleSheet.create({
|
||||
minWidth: 0,
|
||||
},
|
||||
summaryLabel: {
|
||||
fontSize: 11,
|
||||
fontSize: 12,
|
||||
color: '#687076',
|
||||
marginBottom: 3,
|
||||
},
|
||||
summaryValue: {
|
||||
fontSize: 13,
|
||||
fontWeight: '700',
|
||||
fontSize: 14,
|
||||
marginTop: 2,
|
||||
fontWeight: '600',
|
||||
color: '#192126',
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user