mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor: wrap break word instead of truncate on paste titles
This commit is contained in:
@@ -539,8 +539,7 @@
|
|||||||
{#if data.paste}
|
{#if data.paste}
|
||||||
<div class="mb-4 w-full text-center">
|
<div class="mb-4 w-full text-center">
|
||||||
<h1
|
<h1
|
||||||
class="mx-auto max-w-[90%] min-w-0 truncate text-3xl leading-tight font-bold sm:text-4xl"
|
class="mx-auto max-w-[90%] wrap-break-word min-w-0 text-3xl leading-tight font-bold sm:text-4xl"
|
||||||
use:tooltip={data.paste.title && data.paste.title.length > 40 ? data.paste.title : ''}
|
|
||||||
>
|
>
|
||||||
{#if !editing}
|
{#if !editing}
|
||||||
{data.paste.title || 'Untitled Paste'}
|
{data.paste.title || 'Untitled Paste'}
|
||||||
|
|||||||
Reference in New Issue
Block a user