Skip to content

Commit 6d432b7

Browse files
committed
Test for massive values
1 parent 568641f commit 6d432b7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,16 @@ Example.args = {
103103
key: "nloads",
104104
},
105105
},
106+
{
107+
result: {
108+
...resultDefaults,
109+
value: "r".repeat(1000),
110+
},
111+
description: {
112+
...descriptionDefaults,
113+
display_name: "Really, really big",
114+
key: "big",
115+
},
116+
},
106117
],
107118
}

site/src/components/Resources/AgentMetadata.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ const useStyles = makeStyles((theme) => ({
305305
textOverflow: "ellipsis",
306306
overflow: "hidden",
307307
whiteSpace: "nowrap",
308+
maxWidth: "16em",
308309
},
309310

310311
metadataValueSuccess: {

0 commit comments

Comments
 (0)