Skip to content

Commit b0f773d

Browse files
committed
More visual fixes
1 parent 2b270ec commit b0f773d

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

site/src/components/Resources/AgentRow.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,10 @@ const styles = {
607607
gap: 16,
608608
flexWrap: "wrap",
609609

610+
"&:empty": {
611+
display: "none",
612+
},
613+
610614
[theme.breakpoints.down("md")]: {
611615
marginLeft: 0,
612616
justifyContent: "flex-start",

site/src/components/Resources/ResourceCard.stories.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import { action } from "@storybook/addon-actions";
21
import {
32
MockProxyLatencies,
4-
MockWorkspace,
53
MockWorkspaceResource,
64
} from "testHelpers/entities";
7-
import { AgentRow } from "./AgentRow";
85
import { ResourceCard } from "./ResourceCard";
96
import { ProxyContext, getPreferredProxy } from "contexts/ProxyContext";
107
import type { Meta, StoryObj } from "@storybook/react";
118
import { type WorkspaceAgent } from "api/typesGenerated";
9+
import { AgentRowPreview } from "./AgentRowPreview";
1210

1311
const meta: Meta<typeof ResourceCard> = {
1412
title: "components/Resources/ResourceCard",
@@ -93,15 +91,7 @@ function getAgentRow(agent: WorkspaceAgent): JSX.Element {
9391
},
9492
}}
9593
>
96-
<AgentRow
97-
showApps
98-
key={agent.id}
99-
agent={agent}
100-
workspace={MockWorkspace}
101-
serverVersion=""
102-
serverAPIVersion=""
103-
onUpdateAgent={action("updateAgent")}
104-
/>
94+
<AgentRowPreview agent={agent} key={agent.id} />
10595
</ProxyContext.Provider>
10696
);
10797
}

0 commit comments

Comments
 (0)