Skip to content

Commit 32c3515

Browse files
author
Steve Salas
committed
Fix code coverage bar chart and adjust icons
Use of transparency in bar chart affected appearance under NW.js. Restores Dependency Check appearance in the Application Inventory for Java projects.
1 parent e610b42 commit 32c3515

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

codepulse/src/main/resources/toserve/pages/projects/PackageWidget.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,18 @@
211211

212212
.widget-label .vuln-badge {
213213
float: right;
214+
background: #ec0a0a;
215+
border-radius: 2px;
216+
padding: 0 4px;
214217
line-height: 22px;
215218
margin: 0 4px;
216-
color: coral;
219+
font-size: 80%;
220+
color: whitesmoke;
217221
cursor: pointer;
218-
padding: 0 2px;
219222
}
220223

221224
.widget-label .vuln-badge:hover {
222-
background: coral;
223-
color: black;
225+
background: #f85353;
224226
}
225227

226228
.widget-label .vuln-badge.bubbled {
@@ -239,6 +241,10 @@
239241
transition: background 0.25s ease;
240242
}
241243

244+
.widget-label .dependencycheck-badge:hover {
245+
background: #f85353;
246+
}
247+
242248
.widget-label .dependencycheck-badge.clean {
243249
background: rgb(12, 160, 12);
244250
cursor: default;
@@ -392,14 +398,14 @@
392398
/* The 'complete' bar of the barchart */
393399
.widget-barchart .bar-shell {
394400
height: 14px;
395-
background-color: #fefeff12;
401+
background-color: #323232;
396402
box-sizing: border-box;
397403
margin-top: 3px;
398404
}
399405

400406
/* The 'fill' part of the barchart. The width will be set by javascript. */
401407
.widget-barchart .bar-shell .bar-fill {
402-
background-color: white;
408+
background-color: #b7b4b4;
403409
height: 100%;
404410
position: relative;
405411
}

codepulse/src/main/scala/com/secdec/codepulse/input/dependencycheck/DependencyCheckPostProcessor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class DependencyCheckPostProcessor(eventBus: GeneralEventBus, scanSettings: (Str
7575
if (!vulns.isEmpty) {
7676
vulnDeps += 1
7777
val f = new File((dep \ "filePath").text)
78-
val jarLabel = f.pathSegments.drop(scanSettings.app.pathSegments.length).mkString("JARs / ", " / ", "")
78+
val jarLabel = f.pathSegments.drop(scanSettings.app.pathSegments.length).mkString("JARs/", "/", "")
7979
for (node <- treeNodeData getNode jarLabel) {
8080
node.flags += TreeNodeFlag.HasVulnerability
8181
vulnNodes += node.id

0 commit comments

Comments
 (0)