mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(control) Better looking progress bar
This commit is contained in:
parent
88b9ec70c6
commit
00d9773b44
@ -5,7 +5,7 @@ public record ProcessHeartbeat(
|
|||||||
String processBase,
|
String processBase,
|
||||||
String uuid,
|
String uuid,
|
||||||
double lastSeenMillis,
|
double lastSeenMillis,
|
||||||
int progress,
|
Integer progress,
|
||||||
String status
|
String status
|
||||||
) {
|
) {
|
||||||
public boolean isMissing() {
|
public boolean isMissing() {
|
||||||
@ -17,7 +17,7 @@ public record ProcessHeartbeat(
|
|||||||
public String progressStyle() {
|
public String progressStyle() {
|
||||||
if ("RUNNING".equals(status) && progress > 0) {
|
if ("RUNNING".equals(status) && progress > 0) {
|
||||||
return """
|
return """
|
||||||
background: linear-gradient(90deg, #ccc %d%%, #ccc %d%%, #fff %d%%)
|
background: linear-gradient(90deg, #fff 0%%, #ccc %d%%, #fff %d%%)
|
||||||
""".formatted(progress, progress, progress);
|
""".formatted(progress, progress, progress);
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<td>{{processId}}</td>
|
<td>{{processId}}</td>
|
||||||
<td>{{uuid}}</td>
|
<td>{{uuid}}</td>
|
||||||
<td>{{status}}</td>
|
<td>{{status}}</td>
|
||||||
<td>{{progress}}</td>
|
<td>{{#if progress}}{{progress}}%{{/if}}</td>
|
||||||
<td>{{#unless isStopped}}{{lastSeenMillis}}{{/unless}}</td>
|
<td>{{#unless isStopped}}{{lastSeenMillis}}{{/unless}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
Loading…
Reference in New Issue
Block a user