This commit is contained in:
mmc
2026-05-14 10:03:51 +08:00
parent 2ae097eed0
commit 4ac279139b
4 changed files with 90 additions and 44 deletions

View File

@@ -195,7 +195,7 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 20,
fontSize: 'clamp(16px, 1.5vw, 20px)',
flexShrink: 0,
}}
>
@@ -204,12 +204,12 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
{/* 右侧文字 */}
<div style={{ flex: 1, minWidth: 0 }}>
<div style={{ fontSize: 13, color: '#666' }}>{card.title}</div>
<div style={{ fontSize: 24, fontWeight: 700, color: '#222', lineHeight: '30px' }}>
<div style={{ fontSize: 'clamp(11px, 0.9vw, 13px)', color: '#666' }}>{card.title}</div>
<div style={{ fontSize: 'clamp(18px, 1.6vw, 24px)', fontWeight: 700, color: '#222', lineHeight: '30px' }}>
{card.value}
</div>
{card.sub && (
<div style={{ fontSize: 12, color: '#999', marginTop: 2 }}>
<div style={{ fontSize: 'clamp(10px, 0.8vw, 12px)', color: '#999', marginTop: 2 }}>
{card.sub}
</div>
)}