FIX: Show events even if no posts
Moves the "no posts" message to only display when there are no posts and no scheduled events. Also, ensures "end of feed" message is displayed only when there are posts to show.
This commit is contained in:
parent
0e42318036
commit
76b930469d
1 changed files with 12 additions and 12 deletions
|
|
@ -464,17 +464,6 @@ function cancelDelete() {
|
|||
</p>
|
||||
</div>
|
||||
|
||||
<!-- No Posts -->
|
||||
<div v-else-if="threadedPosts.length === 0" class="text-center py-8 px-4">
|
||||
<div class="flex items-center justify-center gap-2 text-muted-foreground mb-4">
|
||||
<Megaphone class="h-5 w-5" />
|
||||
<span>No posts yet</span>
|
||||
</div>
|
||||
<p class="text-sm text-muted-foreground">
|
||||
Check back later for community updates.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Posts List - Natural flow without internal scrolling -->
|
||||
<div v-else>
|
||||
<!-- Scheduled Events Section with Date Navigation -->
|
||||
|
|
@ -559,8 +548,19 @@ function cancelDelete() {
|
|||
/>
|
||||
</div>
|
||||
|
||||
<!-- No Posts Message (show whenever there are no posts, regardless of events) -->
|
||||
<div v-else class="text-center py-8 px-4">
|
||||
<div class="flex items-center justify-center gap-2 text-muted-foreground mb-4">
|
||||
<Megaphone class="h-5 w-5" />
|
||||
<span>No posts yet</span>
|
||||
</div>
|
||||
<p class="text-sm text-muted-foreground">
|
||||
Check back later for community updates.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- End of feed message -->
|
||||
<div class="text-center py-6 text-md text-muted-foreground">
|
||||
<div v-if="threadedPosts.length > 0" class="text-center py-6 text-md text-muted-foreground">
|
||||
<p>🐢</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue