File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed
extensions/ql-vscode/src/view Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1+ import { styled } from "styled-components" ;
2+
3+ export const VerticalRule = styled . span `
4+ border-left: 1px solid var(--vscode-dropdown-border);
5+ height: 100%;
6+ position: absolute;
7+ top: 0;
8+ bottom: 0;
9+ ` ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as Keys from "./result-keys";
44import { SarifLocation } from "./locations/SarifLocation" ;
55import { selectableZebraStripe } from "./result-table-utils" ;
66import { useCallback , useMemo } from "react" ;
7+ import { VerticalRule } from "../common/VerticalRule" ;
78
89interface Props {
910 step : Sarif . ThreadFlowLocation ;
@@ -54,10 +55,10 @@ export function AlertTablePathNodeRow(props: Props) {
5455 className = { isSelected ? "vscode-codeql__selected-path-node" : undefined }
5556 >
5657 < td className = "vscode-codeql__icon-cell" >
57- < span className = "vscode-codeql__vertical-rule" > </ span >
58+ < VerticalRule / >
5859 </ td >
5960 < td className = "vscode-codeql__icon-cell" >
60- < span className = "vscode-codeql__vertical-rule" > </ span >
61+ < VerticalRule / >
6162 </ td >
6263 < td
6364 { ...selectableZebraStripe (
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { selectableZebraStripe } from "./result-table-utils";
55import { AlertTablePathNodeRow } from "./AlertTablePathNodeRow" ;
66import { AlertTableDropdownIndicatorCell } from "./AlertTableDropdownIndicatorCell" ;
77import { useCallback , useMemo } from "react" ;
8+ import { VerticalRule } from "../common/VerticalRule" ;
89
910interface Props {
1011 path : Sarif . ThreadFlow ;
@@ -53,7 +54,7 @@ export function AlertTablePathRow(props: Props) {
5354 { ...selectableZebraStripe ( isPathSpecificallySelected , resultIndex ) }
5455 >
5556 < td className = "vscode-codeql__icon-cell" >
56- < span className = "vscode-codeql__vertical-rule" > </ span >
57+ < VerticalRule / >
5758 </ td >
5859 < AlertTableDropdownIndicatorCell
5960 expanded = { currentPathExpanded }
Original file line number Diff line number Diff line change @@ -145,14 +145,6 @@ td.vscode-codeql__path-index-cell {
145145 text-align : right !important ;
146146}
147147
148- .vscode-codeql__vertical-rule {
149- border-left : 1px solid var (--vscode-dropdown-border );
150- height : 100% ;
151- position : absolute;
152- top : 0 ;
153- bottom : 0 ;
154- }
155-
156148.octicon {
157149 fill : var (--vscode-editor-foreground );
158150 margin-top : 0.25em ;
You can’t perform that action at this time.
0 commit comments