fix: reformat tags row in operation list

This commit is contained in:
garethgeorge
2024-08-18 13:04:42 -07:00
parent 2552a2377e
commit 4c967e34c6
+6 -8
View File
@@ -323,21 +323,16 @@ const SnapshotDetails = ({ snapshot }: { snapshot: ResticSnapshot }) => {
const rows: React.ReactNode[] = [
<Row gutter={16} key={1}>
<Col span={8}>
<Col span={12}>
<Typography.Text strong>Host</Typography.Text>
<br />
{snapshot.hostname}
</Col>
<Col span={8}>
<Col span={12}>
<Typography.Text strong>Username</Typography.Text>
<br />
{snapshot.hostname}
</Col>
<Col span={8}>
<Typography.Text strong>Tags</Typography.Text>
<br />
{snapshot.tags?.join(", ")}
</Col>
</Row>,
];
@@ -393,7 +388,10 @@ const SnapshotDetails = ({ snapshot }: { snapshot: ResticSnapshot }) => {
<>
<Typography.Text>
<Typography.Text strong>Snapshot ID: </Typography.Text>
{normalizeSnapshotId(snapshot.id!)} {rows}
{normalizeSnapshotId(snapshot.id!)} <br />
<Typography.Text strong>Tags: </Typography.Text>
{snapshot.tags?.join(", ")}
{rows}
</Typography.Text>
</>
);