fix: add word-break to note title and content in notes list
Long unbroken strings in note titles and content overflow the card boundaries in the Notes column. Add break-all so text wraps properly.
This commit is contained in:
parent
c596ed2233
commit
e38c64c70c
1 changed files with 2 additions and 2 deletions
|
|
@ -179,11 +179,11 @@ export function NotesColumn({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{note.title && (
|
{note.title && (
|
||||||
<h4 className="text-sm font-medium mb-2">{note.title}</h4>
|
<h4 className="text-sm font-medium mb-2 break-all">{note.title}</h4>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{note.content && (
|
{note.content && (
|
||||||
<p className="text-sm text-muted-foreground line-clamp-3">
|
<p className="text-sm text-muted-foreground line-clamp-3 break-all">
|
||||||
{note.content}
|
{note.content}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue