Skip to content

Commit

Permalink
suggestion popup restyling (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
ticruz38 authored Nov 25, 2024
1 parent 1a84292 commit 5656fad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ body,
-3px -3px 20px rgba(0, 0, 0, 0.1);
}

.tippy-content {
padding: 0 !important;
}

.tippy-box[data-theme~="dark"][data-placement^="top"] > .tippy-arrow {
bottom: -1px !important;
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/editor/SuggestionProfile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

<div class="flex max-w-full gap-3">
<div class="py-1">
<PersonCircle {pubkey} />
<PersonCircle {pubkey} class="h-10 w-10" />
</div>
<div class="flex min-w-0 flex-col">
<div class="flex items-center gap-2">
<div class="text-bold overflow-hidden text-ellipsis">
<div class="text-bold overflow-hidden text-ellipsis text-base">
{$profileDisplay}
</div>
<WotScore score={$score} accent={following} />
Expand Down
8 changes: 8 additions & 0 deletions src/app/editor/Suggestions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,12 @@
Loading more options...
</div>
{/if}
{#if !items.length && !loading}
<div class="flex gap-2 px-4 py-2 text-base">
<div>
<i class="fa fa-exclamation-circle" />
</div>
No results
</div>
{/if}
{/if}

0 comments on commit 5656fad

Please sign in to comment.