Skip to content

Commit

Permalink
Make --trace-extension-list-line-height a mappable CSS variable
Browse files Browse the repository at this point in the history
The CSS variable --trace-extension-list-line-height is used in both the
vscode and theia trace extension. This commit maps this CSS variable to
--trace-viewer-trace-extension-list-line-height so each extension can
declare its own style.

Signed-off-by: Hoang Thuan Pham <hoang.pham@calian.ca>
  • Loading branch information
hoangphamEclipse committed May 26, 2023
1 parent 2ad2c43 commit 03410a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-components/style/trace-explorer.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--trace-extension-list-line-height: 16px;
--trace-extension-list-line-height: var(--trace-viewer-trace-extension-list-line-height);
}

#trace-explorer-views-widget,
Expand Down
1 change: 1 addition & 0 deletions theia-extensions/viewer-prototype/style/trace-viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
--trace-viewer-sideBarSectionHeader-background: var(--theia-sideBarSectionHeader-background);
--trace-viewer-view-container-title-height: var(--theia-view-container-title-height);
--trace-viewer-sideBarSectionHeader-foreground: var(--theia-sideBarSectionHeader-foreground);
--trace-viewer-trace-extension-list-line-height: 16px;
}

0 comments on commit 03410a1

Please sign in to comment.