webui: always show RSS Add button + live rule match preview

- Article Add button now shows whenever the item has any source
  (magnet, enclosure, or a plain <link>/Atom href), and the manual
  download falls back to the link URL. Fixes missing + on feeds that
  only provide a <link> to the torrent.
- The rule editor now shows a live "current matches" list that updates
  as you type the filters / toggle regex / pick feeds, mirroring the
  daemon's matcher, with grabbed items dimmed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ookami125 2026-06-23 20:51:08 -04:00
parent 0aeb039586
commit b1f33d4194
2 changed files with 50 additions and 3 deletions

View file

@ -304,6 +304,12 @@ table.dtbl td { padding: 3px 8px; border-bottom: 1px solid var(--line-soft); whi
.iconbtn:hover { color: var(--err); background: var(--bg-3); }
.rule-feeds { display: flex; flex-wrap: wrap; gap: 4px 12px; max-height: 120px; overflow: auto;
border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: var(--bg); }
.rule-matches { max-height: 160px; overflow: auto; border: 1px solid var(--line);
border-radius: 6px; background: var(--bg); font-size: 12px; }
.match-row { padding: 3px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
overflow: hidden; text-overflow: ellipsis; }
.match-row:last-child { border-bottom: none; }
.match-row.grabbed { opacity: .55; }
.rule { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg-1); }
.rule.off { opacity: .55; }
.rule-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }