fix: uniform card layout + remove duplicate disk + larger uptime
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s

This commit is contained in:
WangDL 2026-05-22 14:12:35 +08:00
parent e297e2fac7
commit 73fa2b57ff

View File

@ -25,8 +25,7 @@ function ServerCard({ server }: { server: ServerInfo }) {
return (
<Card title={<Space><CloudServerOutlined />{server.name}<Tag color="blue">{server.role}</Tag></Space>} style={{ height: '100%' }}>
<Row gutter={[8, 8]} style={{ marginBottom: 16 }}>
<Col span={24}>
<div style={{ marginBottom: 12, minHeight: 28 }}>
<Space wrap size={[4, 4]}>
<CopyTag text={server.network.publicIp} icon="🌐 " color="cyan" />
<CopyTag text={server.network.privateIp} icon="🔒 " />
@ -34,8 +33,7 @@ function ServerCard({ server }: { server: ServerInfo }) {
<CopyTag key={d} text={d} icon={<GlobalOutlined style={{ marginRight: 2 }} />} color="blue" />
))}
</Space>
</Col>
</Row>
</div>
<Row gutter={[16, 12]}>
<Col xs={12} sm={6}>
@ -60,7 +58,7 @@ function ServerCard({ server }: { server: ServerInfo }) {
))}
</Col>
<Col span={24}>
<Text type="secondary" style={{ fontSize: 11 }}> {server.uptime}</Text>
<Text style={{ fontSize: 14, fontWeight: 500 }}>🕐 {server.uptime}</Text>
</Col>
</Row>