style(feed): compact, recessed layout for off-topic posts

Off-topic posts are the bulk of the Trump feed but carry no signal. Before,
each rendered as a full-size card identical to real signals, making the feed
long and sparse and burying the ~15 actionable posts.

Now noise posts (.post-row.noise) render as a compact, recessed two-column
row: sunk background, 22px dimmed avatar, no aside column, tight padding,
smaller text. The lone floating 'SKIPPED' tag is gone (the meta-line
'off-topic · not crypto' chip already conveys it). Real signal cards are
unchanged — they now visually pop against the muted noise rows.

Verified in the browser: ~6 noise rows per screen (was ~3 cards), and the
'Hide off-topic' toggle collapses to a clean signal-only stream.

tsc clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
k
2026-05-30 03:32:24 +08:00
parent c8dd7176fa
commit 90cccd422b
2 changed files with 62 additions and 48 deletions
+23
View File
@@ -2186,6 +2186,29 @@ html[data-theme="dark"] .ai-reasoning-card {
}
.post-row:hover { border-color: var(--line-2); }
.post-row.selected { border-color: var(--amber-ring); background: oklch(99% 0.02 85); }
/* Off-topic / noise posts: compact, recessed, low-emphasis. They're the bulk
of the Trump feed but carry no signal — make them read as skippable filler
so the eye lands on the real signals. */
.post-row.noise {
background: var(--bg-sunk);
border-color: transparent;
}
.post-row.noise:hover { border-color: var(--line); }
.post-row.noise .post-row-main {
grid-template-columns: 22px 1fr; /* drop the aside column */
gap: 10px;
padding: 8px 14px;
align-items: center;
}
.post-row.noise .src-ico {
width: 22px; height: 22px;
font-size: 11px; border-radius: 6px;
opacity: 0.45;
align-self: center;
}
.post-row.noise .post-body .meta { margin-bottom: 2px; }
.post-row.noise .post-body .text { margin: 0; font-size: 13px; }
.post-row-main {
display: grid;
grid-template-columns: 36px 1fr auto;