fix: fixed IP section height + remove table scroll
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
This commit is contained in:
parent
942a3b23d2
commit
f8e5ae3b95
@ -26,7 +26,7 @@ function ServerCard({ server }: { server: ServerInfo }) {
|
||||
return (
|
||||
<Card title={<Space><CloudServerOutlined />{server.name}<Tag color="blue">{server.role}</Tag></Space>} style={{ height: '100%' }}>
|
||||
{/* IP & domains — fixed height */}
|
||||
<div style={{ marginBottom: 12, minHeight: 30 }}>
|
||||
<div style={{ marginBottom: 12, height: 54, overflow: 'hidden' }}>
|
||||
<Space wrap size={[4, 4]}>
|
||||
<CopyTag text={server.network.publicIp} icon="🌐 " color="cyan" />
|
||||
<CopyTag text={server.network.privateIp} icon="🔒 " />
|
||||
@ -70,7 +70,7 @@ function ServerCard({ server }: { server: ServerInfo }) {
|
||||
<Table
|
||||
dataSource={server.processes || []}
|
||||
rowKey="pid" size="small" pagination={false}
|
||||
scroll={{ y: 240 }}
|
||||
|
||||
style={{ marginTop: 0 }}
|
||||
columns={[
|
||||
{ title: '进程', dataIndex: 'name', width: 110, ellipsis: true, render: (name: string, r: ProcessInfo) => (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user