Skip to content

Commit 9d016d8

Browse files
elibosleyclaude
andcommitted
style(task-tray): use a plain loader spinner for running tasks
Drop the indeterminate progress bar in favor of a simple loader: running tasks now use the fa-circle-o-notch spinner (clearer 'loading' read than the refresh arrows). Keeps the running indicator minimal. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 5d40c2d commit 9d016d8

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function trayRender() {
284284
if (t.status=='done' || t.status=='error') finished++;
285285
var show = "<a class='op-act' onclick='foregroundTask(\""+t.id+"\")' title=\"<?=_('Show')?>\"><i class='fa fa-window-maximize fa-fw'></i></a>";
286286
if (t.status=='running') {
287-
icon = "<i class='fa fa-refresh fa-spin fa-fw'></i>";
287+
icon = "<i class='fa fa-circle-o-notch fa-spin fa-fw'></i>";
288288
actions = show + "<a class='op-act' onclick='confirmAbortTask(\""+t.id+"\")' title=\"<?=_('Abort')?>\"><i class='fa fa-stop-circle fa-fw'></i></a>";
289289
} else if (t.status=='queued') {
290290
icon = "<i class='fa fa-clock-o fa-fw'></i>";

emhttp/plugins/dynamix/styles/default-base.css

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,27 +1936,6 @@ label.checkbox input:disabled ~ .checkmark {
19361936
.op-tray .op-task.op-done { border-left-color: var(--green-800); }
19371937
.op-tray .op-task.op-error { border-left-color: var(--red-600); }
19381938
.op-tray .op-task.op-queued { border-left-color: var(--gray-500); }
1939-
/* Indeterminate progress bar sweeping along the bottom of a running task so it
1940-
clearly reads as still active (these ops don't report a real percentage). */
1941-
.op-tray .op-task.op-running { position: relative; overflow: hidden; }
1942-
.op-tray .op-task.op-running::after {
1943-
content: '';
1944-
position: absolute;
1945-
left: 0;
1946-
bottom: 0;
1947-
height: 2px;
1948-
width: 35%;
1949-
background-color: var(--brand-orange);
1950-
border-radius: 2px;
1951-
animation: op-running-bar 1.3s ease-in-out infinite;
1952-
}
1953-
@keyframes op-running-bar {
1954-
0% { transform: translateX(-110%); }
1955-
100% { transform: translateX(390%); }
1956-
}
1957-
@media (prefers-reduced-motion: reduce) {
1958-
.op-tray .op-task.op-running::after { animation: none; left: 0; width: 100%; opacity: .35; }
1959-
}
19601939
.op-tray .op-icon { flex: 0 0 auto; }
19611940
.op-tray .op-title {
19621941
flex: 1 1 auto;

0 commit comments

Comments
 (0)