diff --git a/crates/qbz-slint/src/album.rs b/crates/qbz-slint/src/album.rs index 155642b87..18c8fe33c 100644 --- a/crates/qbz-slint/src/album.rs +++ b/crates/qbz-slint/src/album.rs @@ -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 diff --git a/crates/qbz-slint/ui/album/AlbumPageView.slint b/crates/qbz-slint/ui/album/AlbumPageView.slint index cfe59eb91..a2c6e9547 100644 --- a/crates/qbz-slint/ui/album/AlbumPageView.slint +++ b/crates/qbz-slint/ui/album/AlbumPageView.slint @@ -426,6 +426,12 @@ export component AlbumPageView inherits Rectangle { // with a Read more link to the full modal. if AlbumState.description != "": Rectangle { height: 12px; } if AlbumState.description != "": Text { + // Explicit width so the text fills the whole band + // to the right of the artwork instead of wrapping + // narrow and leaving dead space. Bound to root.width + // (not the parent layout) to avoid a binding loop: + // page padding 32+32, artwork 224, header gap 32. + width: root.width - 320px; text: AlbumState.description-short; color: Theme.text-secondary; font-size: Typography.legal;