feedsignal/crates
Austin Schaefer 21103b1f25 Fix article row layout: button overlapping title, uneven summary gaps
article-row had no layout structure at all — title link, score badge,
and the dismiss button were plain inline siblings in a block <li>, so a
long title pushed the button flush against (or past) the row's edge.
Group title+score into a header row and make the row itself a flex
column so summary/topics/button always stack on their own line below,
regardless of title length.

Also stopped rendering the summary <p> and topics div at all when
there's no content (many RSS entries have no description), instead of
emitting empty elements — spacing was uneven because those still
reserved a line's worth of height. Left this as an explicit Rust-side
branch rather than CSS :empty: an empty <p> still contains a
zero-length text node, and whether :empty matches that is
inconsistent across engines, whereas the topics div (an empty `for`
loop) has zero children and would be a safe :empty candidate — but
kept both on the same explicit mechanism for consistency.

Swapped the dismiss button from a raw <button> to the dx Button
component, matching the rest of the row and the project's preference
for the component library over raw elements.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PqTJmazHBQK878vjQ4JnnF
2026-09-03 18:08:14 +02:00
..
core chore: Use valid license SPDX id. Revert logic refactor. 2026-08-21 14:03:10 +02:00
db Add unit tests for list_ranked_articles' feed_id filtering 2026-09-03 17:04:01 +02:00
feeds Split has_content test into three cases per reviewer request 2026-08-21 15:38:52 +02:00
llm Apply cargo fmt across the workspace 2026-08-21 13:10:08 +02:00
web Fix article row layout: button overlapping title, uneven summary gaps 2026-09-03 18:08:14 +02:00