};
renderLine({
+ displayDuplications,
index,
issuesForLine,
issueLocations,
symbols,
verticalBuffer
}: {
+ displayDuplications: boolean;
index: number;
issuesForLine: T.Issue[];
issueLocations: T.LinearIssueLocation[];
branchLike={undefined}
displayAllIssues={false}
displayCoverage={true}
- displayDuplications={!!line.duplicated}
+ displayDuplications={displayDuplications}
displayIssues={!isSinkLine || issuesForLine.length > 1}
displayLocationMarkers={true}
duplications={lineDuplications}
? Math.max(0, LINES_BELOW_LAST - (bottomLine - lowestVisibleIssue))
: 0;
+ const displayDuplications = snippet.some(s => !!s.duplicated);
+
return (
<div className="source-viewer-code snippet" key={index}>
{snippet[0].line > 1 && (
<tbody>
{snippet.map((line, index) =>
this.renderLine({
+ displayDuplications,
index,
issuesForLine: issuesByLine[line.line] || [],
issueLocations: locationsByLine[line.line] || [],
}
}
+.issue-location {
+ display: inline-block;
+ vertical-align: top;
+ line-height: 18px;
+ height: 18px;
+ box-sizing: border-box;
+ background-color: var(--issueBgColor);
+ transition: background-color 0.3s ease;
+}
+
.issues-workspace-list-component {
padding: 10px 10px 6px;
}
user-select: text;
}
-.issue-location {
- display: inline-block;
- vertical-align: top;
- line-height: 18px;
- height: 18px;
- box-sizing: border-box;
- background-color: var(--issueBgColor);
- transition: background-color 0.3s ease;
-}
-
.issue-location.highlighted {
border-color: #e1e1f2;
background-color: #e1e1f2;