refac: token rendering

This commit is contained in:
Timothy J. Baek
2024-08-05 17:12:41 +02:00
parent 05bbca5b07
commit 7d42a79177
3 changed files with 90 additions and 41 deletions

View File

@@ -12,14 +12,14 @@
let showImagePreview = false;
</script>
<div class="w-full py-3">
<div>
<button
on:click={() => {
showImagePreview = true;
}}
class="w-full"
>
<img src={_src} {alt} class=" max-h-96 rounded-lg" draggable="false" data-cy="image" />
</button>
</div>
<ImagePreview bind:show={showImagePreview} src={_src} {alt} />