Skip to content

Commit 5e21eb9

Browse files
committed
Add collapse
1 parent 7980f45 commit 5e21eb9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/src/components/Resources/AgentRow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import { AgentLatency } from "./AgentLatency"
4242
import { AgentMetadata } from "./AgentMetadata"
4343
import { AgentVersion } from "./AgentVersion"
4444
import { AgentStatus } from "./AgentStatus"
45+
import Collapse from "@material-ui/core/Collapse"
4546

4647
export interface AgentRowProps {
4748
agent: WorkspaceAgent
@@ -282,7 +283,7 @@ export const AgentRow: FC<AgentRowProps> = ({
282283

283284
{hasStartupFeatures && (
284285
<div className={styles.logsPanel}>
285-
{showStartupLogs && (
286+
<Collapse in={showStartupLogs}>
286287
<AutoSizer disableHeight>
287288
{({ width }) => (
288289
<List
@@ -305,7 +306,8 @@ export const AgentRow: FC<AgentRowProps> = ({
305306
</List>
306307
)}
307308
</AutoSizer>
308-
)}
309+
</Collapse>
310+
309311
<div className={styles.logsPanelButtons}>
310312
{showStartupLogs ? (
311313
<button

0 commit comments

Comments
 (0)