fix: align dashboard quick entry actions

This commit is contained in:
linkong
2026-04-01 09:44:32 +08:00
parent 4dc6a9d942
commit 126d4dadb7
2 changed files with 30 additions and 5 deletions

View File

@@ -1236,6 +1236,28 @@ body {
align-items: center;
}
.dashboard-quick-entry {
width: 100%;
align-items: center;
text-align: center;
}
.dashboard-quick-entry__copy {
display: flex;
flex-direction: column;
gap: 4px;
align-items: center;
}
.dashboard-quick-entry__title.ant-typography {
margin: 0;
}
.dashboard-quick-entry__link {
display: inline-flex;
justify-content: center;
}
.dashboard-status-tag {
margin-inline-end: 0 !important;
padding-inline: 10px;
@@ -1251,6 +1273,9 @@ body {
background: #ffffff;
color: rgba(0, 0, 0, 0.88);
box-shadow: none;
font-size: 12px;
font-weight: 600;
line-height: 24px;
}
.dashboard-action-button.ant-btn:hover,

View File

@@ -442,13 +442,13 @@ function Dashboard() {
<Row gutter={[16, 16]}>
<Col xs={24}>
<Card>
<Space direction="vertical" size={12} style={{ width: '100%' }}>
<div>
<Title level={5} style={{ margin: 0 }}></Title>
<Space direction="vertical" size={12} className="dashboard-quick-entry">
<div className="dashboard-quick-entry__copy">
<Title level={5} className="dashboard-quick-entry__title"></Title>
<Text type="secondary">访</Text>
</div>
<Link to="/earth">
<Button type="primary" icon={<GlobalOutlined />}>
<Link to="/earth" className="dashboard-quick-entry__link">
<Button type="primary" icon={<GlobalOutlined />} className="dashboard-quick-entry__button">
访 Earth
</Button>
</Link>