Update collapse behavior and styling in ThreadedPost component

- Modified the collapse state logic to automatically collapse replies if there are more than 2 direct replies, enhancing user experience by reducing clutter.
- Updated the styling of the vertical line connecting nested replies for improved visual consistency.

These changes contribute to a more organized and user-friendly interface within the NostrFeed module.
This commit is contained in:
padreug 2025-09-20 12:16:27 +02:00
parent 26ba27c87a
commit 7c5f75a8ea

View file

@ -105,7 +105,7 @@ function getRideshareType(post: FeedPost): string {
<!-- Vertical line connecting to parent (for nested replies) -->
<div
v-if="depth > 0"
class="absolute left-0 top-0 bottom-0 w-px bg-border/40"
class="absolute left-0 top-0 bottom-0 w-px bg-muted-foreground/60"
:style="{ marginLeft: `${depth * 6 + 3}px` }"
/>