fix(ui): show mood tags and document titles in full

Mood tags are the person's own words and were cut to one line in the list;
they wrap now. A document title wraps to two lines with hyphenation and
carries its full text in title past that; the filename line keeps its
truncation, which already shows the full name on hover.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 15:17:38 +02:00
1 parent 3d494697f7
commit 6019ecbd4d
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -846,7 +846,7 @@ export function MoodList({ onAddFirst, onEmptyChange }: MoodListProps = {}) {
</span>
</TableCell>
<TableCell className="text-muted-foreground max-w-[18rem] text-sm">
<span className="block truncate">
<span className="block break-words">
{entry.tags.length > 0
? entry.tags.join(", ")
: "-"}
@@ -960,7 +960,7 @@ export function MoodList({ onAddFirst, onEmptyChange }: MoodListProps = {}) {
</DayLink>
</p>
{entry.tags.length > 0 && (
<p className="text-muted-foreground truncate text-xs">
<p className="text-muted-foreground text-xs break-words">
{entry.tags.join(", ")}
</p>
)}