Skip to content

Commit

Permalink
fix: reformat tags row in operation list
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Aug 18, 2024
1 parent 4e9973c commit 0eb560d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions webui/src/components/OperationRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
];

Expand Down Expand Up @@ -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>
</>
);
Expand Down

0 comments on commit 0eb560d

Please sign in to comment.