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:
2 files changed
+10
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user