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