Commit 5f0f7a8c authored by KesaubeEire's avatar KesaubeEire

feat: 给 tag 添加原始文本的 hover tip.

parent 215c53cc
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
<!-- <div class="badge badge-outline">tag2</div> --> <!-- <div class="badge badge-outline">tag2</div> -->
{:else} {:else}
{#each tags as tag} {#each tags as tag}
<div class="tooltip" data-tip={tag}>
<div <div
class="badge badge-outline cursor-pointer hover:bg-neutral hover:text-neutral-content" class="badge badge-outline cursor-pointer hover:bg-neutral hover:text-neutral-content"
on:click={p_searchTag(tag)} on:click={p_searchTag(tag)}
...@@ -113,6 +114,7 @@ ...@@ -113,6 +114,7 @@
> >
{getTransTag(tag) ?? tag} {getTransTag(tag) ?? tag}
</div> </div>
</div>
{/each} {/each}
{/if} {/if}
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment