Skip to content

Commit bb1696a

Browse files
committed
fix: show Output of Program masonry tile in green
Signed-off-by: Nick Mitchell <[email protected]>
1 parent 3535684 commit bb1696a

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

pdl-live-react/src/view/masonry/Masonry.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@
3333
background: #0066cc;
3434
}
3535
&[data-kind="read"] {
36-
background: #63993d30;
36+
background: #b9841230;
3737
}
3838
&[data-kind="code"] {
3939
background: #ca6c0f30;
4040
}
41+
&[data-kind="output-of-program"] {
42+
background: #63993d30;
43+
}
4144
}
4245
}
4346

@@ -49,11 +52,14 @@
4952
background: #e0f0ff;
5053
}
5154
&[data-kind="read"] {
52-
background: #e9f7df;
55+
background: #fff4cc;
5356
}
5457
&[data-kind="code"] {
5558
background: #ffe8cc;
5659
}
60+
&[data-kind="output-of-program"] {
61+
background: #e9f7df;
62+
}
5763
}
5864

5965
.pdl-masonry-index {

pdl-live-react/src/view/masonry/MasonryTile.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ export default function MasonryTile({
8787
)
8888

8989
return (
90-
<MasonryTileWrapper sml={sml} kind={kind} header={header}>
90+
<MasonryTileWrapper
91+
sml={sml}
92+
kind={/^[^.]+$/.test(id) ? "output-of-program" : kind}
93+
header={header}
94+
>
9195
<Panel isScrollable={sml !== "xl"} className="pdl-masonry-tile-panel">
9296
<PanelMain maxHeight={maxHeight}>
9397
<Result

0 commit comments

Comments
 (0)