fixes padding for comment empty staet

This commit is contained in:
Christian Beutel
2025-01-04 20:34:10 +01:00
parent f6af98246c
commit 3cc58d9460
3 changed files with 14 additions and 14 deletions

View File

@@ -83,7 +83,7 @@
? null ? null
: `/profile/${n.author}`; : `/profile/${n.author}`;
case NotificationType.trailComment: case NotificationType.trailComment:
return `/trail/view/${n.metadata?.id}`; return `/trail/view/${n.metadata?.id}?t=4`;
case NotificationType.trailCreate: case NotificationType.trailCreate:
return `/trail/view/${n.metadata?.id}`; return `/trail/view/${n.metadata?.id}`;
case NotificationType.trailShare: case NotificationType.trailShare:

View File

@@ -104,7 +104,7 @@
<div class="dropdown relative"> <div class="dropdown relative">
{#if unreadCount > 0} {#if unreadCount > 0}
<div <div
class="absolute -top-1 left-4 text-sm rounded-full bg-content text-content-inverse px-1 text-center" class="absolute pointer-events-none -top-1 left-4 text-sm rounded-full bg-content text-content-inverse px-1 text-center"
> >
{unreadCount}{unreadCount >= 10 ? "+" : ""} {unreadCount}{unreadCount >= 10 ? "+" : ""}
</div> </div>
@@ -117,7 +117,7 @@
{#if isOpen} {#if isOpen}
<ul <ul
class="menu absolute bg-menu-background border border-input-border rounded-l-xl rounded-b-xl shadow-md right-0 overflow-scroll mt-4 max-h-96 w-64" class="menu absolute bg-menu-background border border-input-border rounded-l-xl rounded-b-xl shadow-md right-0 overflow-scroll mt-4 max-h-96 w-72"
class:none={isOpen} class:none={isOpen}
on:scroll={onListScroll} on:scroll={onListScroll}
style="z-index: 1001" style="z-index: 1001"

View File

@@ -396,15 +396,15 @@
> >
</div> </div>
{/if} {/if}
<ul class="space-y-4">
{#if commentsLoading} {#if commentsLoading}
{#each { length: 3 } as _, index} {#each { length: 3 } as _, index}
<SkeletonNotificationCard <SkeletonNotificationCard
></SkeletonNotificationCard> ></SkeletonNotificationCard>
{/each} {/each}
{:else if $comments.length == 0} {:else if $comments.length == 0}
<EmptyStateComment></EmptyStateComment> <div class="my-4"><EmptyStateComment></EmptyStateComment></div>
{:else} {:else}
<ul class="space-y-4">
{#each $comments ?? [] as comment} {#each $comments ?? [] as comment}
<li> <li>
<CommentCard <CommentCard
@@ -418,8 +418,8 @@
></CommentCard> ></CommentCard>
</li> </li>
{/each} {/each}
{/if}
</ul> </ul>
{/if}
</div> </div>
{/if} {/if}
{#if mode == "overview"} {#if mode == "overview"}