Queue: no length cap, make up to 9,999
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d564164edf
commit
a723558fb2
4 changed files with 10 additions and 13 deletions
|
|
@ -805,7 +805,7 @@ function queuePanel() {
|
|||
<button class="btn sm danger" data-unqueue="${i}" title="Remove">✕</button></li>`;
|
||||
}).join("");
|
||||
return `<div class="queue-panel">
|
||||
<div class="qp-head"><b>⏳ Crafting queue</b><span class="muted small">${q.length} / ${C.queue_max}</span><button class="x" data-queue-menu title="Close">✕</button></div>
|
||||
<div class="qp-head"><b>⏳ Crafting queue</b><span class="muted small">${q.length}</span><button class="x" data-queue-menu title="Close">✕</button></div>
|
||||
${now ? `<div class="qp-row now">${now.icon}<span class="qp-name">${esc(now.name)}<span class="muted small">${fmt(me.action.left)} left</span></span>
|
||||
<button class="btn sm" data-queue-skip title="Drop this make, on to the next">Skip</button></div>` : ""}
|
||||
${rows ? `<ol class="qp-list">${rows}</ol>` : `<p class="muted small">Empty. +Q on a recipe adds to it.</p>`}
|
||||
|
|
@ -1744,8 +1744,8 @@ function actionCard(a) {
|
|||
// or with nothing being made, start one: whatever you were doing is what comes after.
|
||||
const making = Boolean(me.action?.left);
|
||||
const canQueue = !active && me.queue_why[a.id] === null;
|
||||
const queueOff = making ? me.queue.length >= C.queue_max : Boolean(why);
|
||||
const queueTitle = making ? (queueOff ? `Queue full (${C.queue_max})` : "Queue: make this many after the current make")
|
||||
const queueOff = !making && Boolean(why);
|
||||
const queueTitle = making ? "Queue: make this many after the current make"
|
||||
: why || "Make this many, then queue more behind it";
|
||||
const queued = me.queue.map((q, i) => q.id === a.id ? i + 1 : 0).filter(Boolean);
|
||||
const out = Object.keys(a.outputs)[0];
|
||||
|
|
|
|||
|
|
@ -858,7 +858,7 @@ button.swatch { width: 36px; height: 36px; }
|
|||
.qp-head, .qp-row, .qp-foot { display: flex; align-items: center; gap: 8px; }
|
||||
.qp-head b { flex: 1; }
|
||||
.qp-head .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
|
||||
.qp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
|
||||
.qp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 60vh; overflow-y: auto; }
|
||||
.qp-row .gi { width: 1.4em; height: 1.4em; }
|
||||
.qp-row.now { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
|
||||
.qp-pos { width: 1.2em; text-align: right; color: var(--muted); font-size: 12px; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue