Some updates to dialog example
This commit is contained in:
@@ -10,25 +10,25 @@
|
||||
<DialogOverlay class="fixed inset-0 bg-gray-500 opacity-25" />
|
||||
<div
|
||||
class="z-10 fixed left-12 top-24 bg-white w-96 p-4 transform"
|
||||
style={`translate(calc(50px * ${level}), calc(50px * ${level}))`}
|
||||
style={`transform: translate(calc(50px * ${level}), calc(50px * ${level}))`}
|
||||
>
|
||||
<p>Level: {level}</p>
|
||||
<div class="space-x-4">
|
||||
<button
|
||||
class="bg-gray-200 px-2 py-1 rounded"
|
||||
onClick={() => (showChild = true)}
|
||||
on:click={() => (showChild = true)}
|
||||
>
|
||||
Open (1)
|
||||
</button>
|
||||
<button
|
||||
class="bg-gray-200 px-2 py-1 rounded"
|
||||
onClick={() => (showChild = true)}
|
||||
on:click={() => (showChild = true)}
|
||||
>
|
||||
Open (2)
|
||||
</button>
|
||||
<button
|
||||
class="bg-gray-200 px-2 py-1 rounded"
|
||||
onClick={() => (showChild = true)}
|
||||
on:click={() => (showChild = true)}
|
||||
>
|
||||
Open (3)
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user