Commit f2d2e8eb authored by KesaubeEire's avatar KesaubeEire

fix: 修复导航栏 Button 连续点击容易失败 -> 嵌套样式问题, 已解决

parent e069575e
......@@ -111,19 +111,21 @@
<div class="flex-1 px-2 mx-2">在线RPG分部·里</div>
<div class="flex-none hidden lg:block">
<ul class="menu menu-horizontal">
<!-- DEBUG: 正常情况下隐藏吧 -->
<li><button class="p-3" on:click={() => toast.push('Hello world!')}>TEST TOAST</button></li>
<!-- Navbar menu content here -->
{#each injectText as Item}
<li>
<div class="tooltip tooltip-left" data-tip={Item.hint}>
<div class="p-3 tooltip tooltip-left" data-tip={Item.hint}>
<button on:mouseenter={Item.hover} on:click={Item.click}>{Item.text}</button>
</div>
</li>
{/each}
<li>
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div class="dropdown dropdown-left">
<div class="dropdown dropdown-left p-0">
<!-- svelte-ignore a11y-label-has-associated-control -->
<label tabindex="0">主题</label>
<label tabindex="0" class="p-3">主题</label>
<ul tabindex="0" class="dropdown-content z-[1] p-2 shadow bg-base-100 rounded-box w-64 h-[70vh] overflow-y-auto">
{#each themes as theme}
<li>
......@@ -140,7 +142,7 @@
{theme}
</div>
<div class="flex h-full flex-shrink-0 flex-wrap gap-1" data-svelte-h="svelte-dkjulf">
<div class="flex h-full flex-shrink-0 flex-wrap gap-1">
<span class="bg-primary w-4 h-4 rounded-box" />
<span class="bg-secondary w-4 h-4 rounded-box" />
<span class="bg-accent w-4 h-4 rounded-box" />
......
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