fix(slint): album description fills the band right of the artwork

The header description wrapped at its natural width and left the
space to the right unused. It now spans the full width to the page
edge (bound to root.width to avoid a layout binding loop), and the
truncation grew from 200 to 360 chars so the wider band reads full.

cc
This commit is contained in:
vicrodh committed 2026-05-18 23:06:29 -06:00
1 parent c273506800
commit 4636194043
2 files changed
+10 -1

No files matched your search

+4 -1
View File
@@ -103,7 +103,10 @@ fn map_album(album: Album) -> AlbumData {
.as_deref()
.map(strip_html)
.unwrap_or_default();
let description_short = truncate_words(&description, 200);
// The header description fills the full width to the right of the
// artwork, so a longer truncation keeps it from looking like a thin
// strip; the Read more modal still holds the complete text.
let description_short = truncate_words(&description, 360);
let artwork_url = album.image.best().cloned().unwrap_or_default();
let label = album
.label