Refactor GenericNode component to improve output display

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-04 00:08:10 -03:00
commit 0788a72179

View file

@ -494,7 +494,7 @@ export default function GenericNode({
) : !validationStatus ? ( ) : !validationStatus ? (
<span className="flex">{STATUS_BUILD}</span> <span className="flex">{STATUS_BUILD}</span>
) : ( ) : (
<div className="max-h-96 overflow-auto custom-scroll"> <div className="max-h-100">
<div> <div>
{lastRunTime && ( {lastRunTime && (
<div className="justify-left flex text-muted-foreground"> <div className="justify-left flex text-muted-foreground">
@ -512,14 +512,16 @@ export default function GenericNode({
</div> </div>
</div> </div>
<hr /> <hr />
<span className="flex justify-center text-muted-foreground"> <span className="flex justify-center text-muted-foreground ">
Output Output
</span> </span>
{validationStatus?.params <div className="max-h-96 overflow-auto custom-scroll">
.split("\n") {validationStatus?.params
.map((line, index) => ( .split("\n")
<div key={index}>{line}</div> .map((line, index) => (
))} <div key={index}>{line}</div>
))}
</div>
</div> </div>
) )
} }