diff --git a/src/components/CommentNode.vue b/src/components/CommentNode.vue index 446fa38..a68e59d 100644 --- a/src/components/CommentNode.vue +++ b/src/components/CommentNode.vue @@ -1,118 +1,114 @@ @@ -162,6 +158,12 @@ 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) @@ -216,73 +218,121 @@ async function submitReply() { diff --git a/src/components/ContentDetailModal.vue b/src/components/ContentDetailModal.vue index bd96ed6..26d38f2 100644 --- a/src/components/ContentDetailModal.vue +++ b/src/components/ContentDetailModal.vue @@ -177,8 +177,8 @@
No comments yet. Be the first!
- -
+ +