refactor: fold comment count into PostActions toolbar

CommentCountBadge was a separate component rendered next to PostActions
— two adjacent strips of buttons that should have been one toolbar.
Merges the count fetch + click-to-scroll behaviour into PostActions
behind `commentPageId` / `commentTargetId` props. The standalone
CommentCountBadge.svelte is now redundant; deleted.

Layout under the post hero is now a single row:
[💬 3]  [↗ Teilen]  [📋 Link]  [🖨️]  [⏱ 4 min]

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Peter Meier
2026-04-28 14:52:30 +02:00
parent 3318fe9e17
commit 6b2b7245f4
4 changed files with 67 additions and 74 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ const TRANSLATION_KEYS = [
"post_map_activate",
"post_map_open_osm",
"post_comments",
// Comment plugin (Comments.svelte / PostCard count pill / CommentCountBadge).
// Comment plugin (Comments.svelte / PostCard count pill / PostActions toolbar).
"comments_loading",
"comments_load_error_title",
"comments_retry",