Skip to content

Commit

Permalink
Show column in TimegraphOutputComponent if back-end provides them
Browse files Browse the repository at this point in the history
No header is drawn with the commit.

Fixes #1149

Signed-off-by: Bernd Hufmann <[email protected]>
  • Loading branch information
bhufmann committed Nov 25, 2024
1 parent 635a34c commit 906c848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ export class TimegraphOutputComponent extends AbstractTreeOutputComponent<Timegr
className="table-tree timegraph-tree"
emptyNodes={this.state.emptyNodes}
hideEmptyNodes={this.shouldHideEmptyNodes}
headers={this.state.columns}
/>
</div>
<div ref={this.markerTreeRef} className="scrollable" style={{ height: this.getMarkersLayerHeight() }}>
Expand Down
6 changes: 4 additions & 2 deletions packages/react-components/style/output-components-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,19 @@ canvas {
}

.timegraph-tree {
border: 0px;
border-collapse: collapse;
}

.timegraph-tree tr {
/* TODO: Fix row alignment, this number is arbitrary, it works [on my machine], but it should match line height in timeline-chart */
line-height: 18px;
border:none;
}

.timegraph-tree td {
padding: 1px;
border: 0px;
border-left: 1px solid var(--trace-viewer-tree-inactiveIndentGuidesStroke);
border-bottom:none;
}

#input-filter-container {
Expand Down

0 comments on commit 906c848

Please sign in to comment.