From 793df817985599732d3949980f4cdce15bd3a532 Mon Sep 17 00:00:00 2001 From: Dorian Date: Thu, 12 Feb 2026 12:45:22 +0000 Subject: [PATCH] Redesign comment replies as glass bubbles - Top-level comments keep their existing layout (avatar, name, timestamp, text, action bar) - Replies now render in a rounded glass bubble with subtle background and border, chat-message style (flat top-left corner, rounded on the other three) - Smaller avatars and more compact action buttons for replies - Reply form pulled outside the comment layout for cleaner nesting at all depths - Better spacing between comment threads Co-authored-by: Cursor --- src/components/CommentNode.vue | 361 +++++++++++++------------- src/components/ContentDetailModal.vue | 2 +- 2 files changed, 179 insertions(+), 184 deletions(-) diff --git a/src/components/CommentNode.vue b/src/components/CommentNode.vue index a68e59d..3f8deba 100644 --- a/src/components/CommentNode.vue +++ b/src/components/CommentNode.vue @@ -1,114 +1,117 @@ @@ -158,12 +161,6 @@ const authorAvatar = computed(() => { return `https://robohash.org/${props.node.event.pubkey}.png` }) -// Dynamic bubble class based on nesting depth -const bubbleClass = computed(() => { - if (props.depth === 0) return 'bubble-root' - return 'bubble-reply' -}) - // Time formatting const timeAgo = computed(() => { const now = Math.floor(Date.now() / 1000) @@ -218,121 +215,119 @@ async function submitReply() { diff --git a/src/components/ContentDetailModal.vue b/src/components/ContentDetailModal.vue index 26d38f2..909130c 100644 --- a/src/components/ContentDetailModal.vue +++ b/src/components/ContentDetailModal.vue @@ -177,7 +177,7 @@
No comments yet. Be the first!
- +