Skip to content

Commit 00cca25

Browse files
committed
The frontend lays out nicely
thanks kyle
1 parent f625783 commit 00cca25

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

site/src/components/Resources/AgentMetadata.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const MetadataItem: FC<{ item: WorkspaceAgentMetadata }> = ({ item }) => {
2727

2828
// Stale data is as good as no data. Plus, we want to build confidence in our
2929
// users that what's shown is real. If times aren't correctly synced this
30-
// could lead to issues.
30+
// could be buggy. But, how common is that anyways?
3131
const value =
3232
secondsSinceLastCollected < staleThreshold ? (
3333
<div className={styles.metadataValue}>{item.result.value}</div>

site/src/components/Resources/AgentRow.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,21 @@ export const AgentRow: FC<AgentRowProps> = ({
5252
<AgentStatus agent={agent} />
5353
</div>
5454

55-
<Stack alignItems="flex-start" direction="column">
56-
<Stack direction="row" alignItems="end">
55+
<Stack
56+
alignItems="flex-start"
57+
direction="column"
58+
style={{
59+
flex: 1,
60+
}}
61+
>
62+
<Stack
63+
direction="row"
64+
alignItems="end"
65+
style={{
66+
width: "100%",
67+
justifyContent: "space-between",
68+
}}
69+
>
5770
<Stack direction="row" alignItems="baseline">
5871
<div>
5972
<div className={styles.agentName}>{agent.name}</div>

0 commit comments

Comments
 (0)