style: tooltip position

This commit is contained in:
Arman
2022-07-08 16:41:29 +02:00
parent ee1fbb53f2
commit dff65b39a3
+2 -5
View File
@@ -20,10 +20,7 @@
};
</script>
<span
class="tooltip is-bottom"
on:mouseenter={() => (text = 'Copy ID')}
on:click|preventDefault={copy}>
<span class="tooltip " on:mouseenter={() => (text = 'Copy ID')} on:click|preventDefault={copy}>
<slot />
<span class="tooltip-popup is-block-end" role="tooltip"> {text} </span>
<span class="tooltip-popup is-bottom" role="tooltip"> {text} </span>
</span>