Fix SJF toggle disappearing from queue page (#879)

The Shortest Job First toggle badge was rendered inside the Pending
  Queue section header, which only mounts when pendingItems.length > 0
  and the list view is selected. Clicking the toggle often lined up
  with the scheduler picking up the last pending item, which unmounted
  the whole section and took the toggle with it.

  Moved the toggle into the queue page header next to the list/timeline
  view switcher so it stays visible regardless of pending-item count,
  filters, or view mode. On mobile the view-mode switcher remains
  hidden (as before) but the SJF button is visible icon-only.
This commit is contained in:
maziggy
2026-04-10 09:48:40 +02:00
parent 11c42841f3
commit 4d57c9cac4
4 changed files with 23 additions and 22 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -23,7 +23,7 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<script type="module" crossorigin src="/assets/index-D6dfDqxE.js"></script>
<script type="module" crossorigin src="/assets/index-wUMtKBja.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Caj-77TJ.css">
</head>
<body>