feat: enhance tooltip functionality; prevent empty tooltips for paste titles

This commit is contained in:
2025-12-29 04:27:26 -05:00
parent f61f31de0e
commit 7eb0204e67
2 changed files with 2 additions and 0 deletions
@@ -38,6 +38,7 @@
<h1
use:tooltip={data.paste.title || 'Untitled Paste'}
class="mb-4 truncate text-center text-4xl font-bold"
use:tooltip={data.paste.title && data.paste.title.length > 40 ? data.paste.title : ''}
>
{data.paste.title || 'Untitled Paste'}
</h1>