polish(feed): one-row toolbar — count after Source, sort right-aligned

Collapse the feed toolbar's two rows into one: the video count sits right after the Source
dropdown, and the sort controls move onto the same row, pushed right with ml-auto (wraps
gracefully on narrow widths). Applies everywhere the Feed renders (main feed + channel page).
This commit is contained in:
npeter83 2026-06-30 04:56:08 +02:00
parent 5e588d15ff
commit f25d0768a1

View file

@ -442,7 +442,7 @@ export default function Feed({
const toolbar = (
<div className="pb-3">
<div className="flex items-center gap-1.5 flex-wrap mb-2.5">
<div className="flex items-center gap-1.5 gap-y-2 flex-wrap">
{SHOW_IDS.map((id) => (
<button
key={id}
@ -498,9 +498,8 @@ export default function Feed({
</label>
</>
)}
</div>
<div className="flex items-center gap-2 border-t border-border pt-2.5">
<span className="text-sm text-muted">
<span className="mx-1 h-5 w-px bg-border" aria-hidden="true" />
<span className="text-xs text-muted whitespace-nowrap">
{countQuery.data
? t("feed.videoCount", {
count: countQuery.data.count,
@ -508,7 +507,7 @@ export default function Feed({
})
: " "}
</span>
<div className="flex-1" />
<div className="ml-auto flex items-center gap-2">
<span className="text-xs text-muted">{t("feed.sortLabel")}</span>
<select
value={sortKey}
@ -556,6 +555,7 @@ export default function Feed({
)}
</div>
</div>
</div>
);
return (