h8r4npp3p: Add the new-posts pill, feed list motion and app-wide reduced-motion switch-off

This commit is contained in:
2026-10-19 22:24:38 -06:00
parent f250cdf09c
commit 5e391ae678
10 changed files with 150 additions and 26 deletions
+2 -1
View File
@@ -236,7 +236,8 @@ export function Feed({
function showNew() {
setPosts((cur) => mergePosts(cur, pending));
setPending([]);
list.current?.scrollTo({ top: 0, behavior: "smooth" });
const calm = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
list.current?.scrollTo({ top: 0, behavior: calm ? "auto" : "smooth" });
}
return (