diff --git a/taskqueue/src/index.js b/taskqueue/src/index.js index 809ce0a..57b1225 100644 --- a/taskqueue/src/index.js +++ b/taskqueue/src/index.js @@ -99,7 +99,7 @@ el('path', { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' }), el('polyline', { points: '7 10 12 15 17 10' }), el('line', { x1: '12', x2: '12', y1: '15', y2: '3' })), - el('span', { text: '仅记录' })) + el('span', { text: it.kind === 'only' ? '仅记录' : '' })) } function badgeOf (it) { diff --git a/taskqueue/styles.css b/taskqueue/styles.css index 40b243e..a2f6265 100644 --- a/taskqueue/styles.css +++ b/taskqueue/styles.css @@ -1,11 +1,11 @@ /* 任务队列页(插件)—— 颜色/字号/圆角/间距全部走宿主 token;结构尺寸允许字面量。 */ -.iwb-tq { display: flex; flex-direction: column; min-height: 100%; gap: var(--iwb-space-10); } -.iwb-tq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--iwb-space-16); flex-wrap: wrap; } +.iwb-tq { display: flex; flex-direction: column; min-height: 0; gap: var(--iwb-space-10); } +.iwb-tq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--iwb-space-16); flex-wrap: nowrap; } .iwb-tq-sub { color: var(--iwb-text2); font-size: var(--iwb-font-sm); } -.iwb-tq-tools { display: flex; align-items: center; gap: var(--iwb-space-8); } -.iwb-tq-tool-lbl { font-size: var(--iwb-font-sm); color: var(--iwb-text2); } -.iwb-tq-limit { height: 28px; padding: 0 var(--iwb-space-8); } -.iwb-tq-ghost { background: var(--iwb-panel); } +.iwb-tq-tools { display: flex; align-items: center; gap: var(--iwb-space-8); flex: 0 0 auto; flex-wrap: nowrap; } +.iwb-tq-tool-lbl { font-size: var(--iwb-font-sm); color: var(--iwb-text2); white-space: nowrap; } +.iwb-tq-limit { height: 28px; padding: 0 var(--iwb-space-8); flex: 0 0 auto; width: auto; min-width: 76px; max-width: 96px; } +.iwb-tq-ghost { background: var(--iwb-panel); white-space: nowrap; flex: 0 0 auto; } .iwb-tq-tabs { display: flex; gap: var(--iwb-space-4); border-bottom: 1px solid var(--iwb-border); } .iwb-tq-tab { display: inline-flex; align-items: center; gap: var(--iwb-space-6); padding: var(--iwb-space-6) var(--iwb-space-10); border: 0; background: transparent; color: var(--iwb-text2); font: inherit; font-size: var(--iwb-font-sm); border-radius: var(--iwb-radius-card) var(--iwb-radius-card) 0 0; cursor: pointer; } .iwb-tq-tab:hover { color: var(--iwb-text); background: var(--iwb-hover); }