mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
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:
1 parent
3d494697f7
commit
6019ecbd4d
2 files changed
+8
-3
No files matched your search
@@ -180,7 +180,12 @@ export function DocumentCard({
|
||||
|
||||
const titleBlock = (
|
||||
<div className="flex min-w-0 flex-1 flex-col">
|
||||
<p className="truncate text-sm font-medium">{title}</p>
|
||||
<p
|
||||
className="line-clamp-2 text-sm font-medium break-words hyphens-auto"
|
||||
title={title}
|
||||
>
|
||||
{title}
|
||||
</p>
|
||||
<p className="text-muted-foreground truncate text-xs">
|
||||
{/* v1.42 — a dated document's date opens its day, above the
|
||||
whole-card button. It follows the grid's roving tab stop, so the
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user