Skip to content

Commit 664bc73

Browse files
committed
Panel: Fix invalid threads display for no detections
1 parent b75e8f8 commit 664bc73

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

compat.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,18 @@ progress[value]::-webkit-progress-value {
148148
color: #e74c3c!important
149149
}
150150

151+
.background-red {
152+
background: rgba(255,0,0,.2)
153+
}
154+
151155
.color-green {
152156
color: #2ecc71!important
153157
}
154158

159+
.background-green {
160+
background: rgba(0,255,0,.2)
161+
}
162+
155163
.compat-table-outside {
156164
width: 100%;
157165
display: flex;
@@ -973,7 +981,6 @@ progress[value]::-webkit-progress-value {
973981
.debug-tvalidity-title {
974982
padding-left: 10px;
975983
border-radius: 6px;
976-
background: rgba(255,0,0,.2);
977984
border: solid 2px;
978985
line-height: 32px;
979986
margin-bottom: 20px

includes/inc.panel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ function checkInvalidThreads() : void
154154

155155
if ($invalid > 0)
156156
{
157-
printf("<p class='debug-tvalidity-title color-red'>Attention required! %d Invalid threads detected</p>",
157+
printf("<p class='debug-tvalidity-title color-red background-red'>Attention required! %d Invalid threads detected</p>",
158158
$invalid);
159159

160160
if ($get['a'] === "checkInvalidThreads")
161161
print($output);
162162
}
163163
else
164164
{
165-
print("<p class='debug-tvalidity-title color-green'>No invalid threads detected</p>");
165+
print("<p class='debug-tvalidity-title color-green background-green'>No invalid threads detected</p>");
166166
}
167167
}
168168

0 commit comments

Comments
 (0)