Skip to content

Commit f82d1c2

Browse files
committed
fix(home): small ui improvements
1 parent 188f614 commit f82d1c2

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/web/Home/Home.tsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import Box from '@/components/Box';
22
import { getTime } from '@/lib/utils';
3-
import { Button, Popover, Spin, Table, Tag } from '@arco-design/web-react';
3+
import {
4+
Button,
5+
Link,
6+
Popover,
7+
Spin,
8+
Table,
9+
Tag,
10+
} from '@arco-design/web-react';
411
import {
512
IconCheckCircle,
613
IconCloseCircle,
@@ -46,18 +53,19 @@ export default function Dashboard() {
4653
<Table
4754
size="small"
4855
border={false}
49-
scroll={{ y: 600 }}
56+
scroll={{ y: 'calc(100vh - 200px)' }}
5057
rowKey="id"
5158
data={shortcuts}
5259
pagination={false}
60+
hover={false}
5361
columns={[
5462
{
5563
title: 'Command',
5664
dataIndex: 'clickCommandPath',
5765
render(col, { clickCommandPath, preset, cmdId }) {
5866
return (
59-
<div
60-
className="cursorPointer fs13 color1"
67+
<Link
68+
className="fs13"
6169
onClick={async () => {
6270
await runCommand({
6371
clickCommandPath,
@@ -72,7 +80,7 @@ export default function Dashboard() {
7280
<Tag bordered color="purple" size="small">
7381
{cmdId}
7482
</Tag>
75-
</div>
83+
</Link>
7684
);
7785
},
7886
},
@@ -121,12 +129,13 @@ export default function Dashboard() {
121129
/>
122130
</Box>
123131

124-
<Box className="pad" title="Running" icon="🏃" style={{ flex: 1 }}>
132+
<Box className="pad" title="Runs" icon="🏃" style={{ flex: 1 }}>
125133
<Table
126134
border={false}
127135
size="small"
128136
pagination={false}
129-
scroll={{ y: 600 }}
137+
hover={false}
138+
scroll={{ y: 'calc(100vh - 200px)' }}
130139
data={runs}
131140
rowKey="id"
132141
columns={[

0 commit comments

Comments
 (0)