File tree Expand file tree Collapse file tree
apps/webapp/app/components/runs/v3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export function SmartColumnSample({
2020 onSelectPath : ( path : string ) => void ;
2121} ) {
2222 return (
23- < div className = "max-h-52 overflow-auto rounded bg-charcoal-900 p-2 font-mono text-xs leading-relaxed" >
23+ < div className = "max-h-52 overflow-auto rounded bg-charcoal-900 p-2 font-mono text-xs leading-relaxed scrollbar-thin scrollbar-track-transparent scrollbar-thumb-surface-control " >
2424 < JsonNode
2525 name = { undefined }
2626 path = "$"
@@ -81,6 +81,19 @@ function JsonNode({
8181 const openBrace = isArray ? "[" : "{" ;
8282 const closeBrace = isArray ? "]" : "}" ;
8383
84+ if ( entries . length === 0 ) {
85+ return (
86+ < div className = "whitespace-pre px-0.5" >
87+ { keyLabel !== null && < span className = "text-sky-300" > { keyLabel } </ span > }
88+ { keyLabel !== null && < span className = "text-text-dimmed" > : </ span > }
89+ < span className = "text-text-dimmed" >
90+ { openBrace }
91+ { closeBrace }
92+ </ span >
93+ </ div >
94+ ) ;
95+ }
96+
8497 return (
8598 < div >
8699 < div className = "whitespace-pre px-0.5" >
You can’t perform that action at this time.
0 commit comments