Skip to content

Commit 1147456

Browse files
committed
fix d3-perf container size; add placeholder for ancestor status
1 parent 8018d10 commit 1147456

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/app/components/PerfView.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ const PerfView = ({ snapshots, viewIndex, width = 600, height = 600 }) => {
140140
}
141141
}, [colorScale, packFunc, width, height, indexToDisplay, snapshots]);
142142

143-
return <svg className="perfContainer" ref={svgRef} />;
143+
return (
144+
<div className="perfContainer">
145+
<svg className="perf-d3-svg" ref={svgRef} />
146+
{/* <span>TEST</span> */}
147+
</div>
148+
);
144149
};
145150

146151
export default PerfView;

src/app/styles/components/d3graph.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,15 @@ div.tooltip {
9494
}
9595

9696
.perfContainer {
97-
display: block;
98-
/* margin: 0 -14px;
99-
background-color: hsl(152,80%,80%); */
97+
display: flex;
98+
flex-direction: column;
99+
justify-content: space-between;
100+
height: calc(100% - 70px);
100101
/* border: 2px solid red; */
101102
}
102103

103-
.d3divContainer {
104-
/* display: flex;
105-
flex-direction: column;
106-
justify-content: space-between; */
104+
.perf-d3-svg {
105+
display: block;
107106
}
108107

109108
.perf-chart-labels {

0 commit comments

Comments
 (0)