From 5de5b618d17babef3be15a7a3508630e66c0b31b Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:47:36 +0000 Subject: [PATCH] ui: let the third bio line use the full width Only reserve the action-button width for the lines they actually overlap, so the collapsed bio's More stays on the third full-width line without moving the actions or spacing. --- .../kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt b/app/src/main/kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt index b1358339..02927839 100644 --- a/app/src/main/kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt +++ b/app/src/main/kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt @@ -570,8 +570,7 @@ fun ArtistDetailScreen( } } -// The collapsed layout narrows all three lines so the More control stays clear of the action -// buttons. Expanded lines only reserve the rows the buttons actually overlap. +// Only the lines that overlap the action buttons are narrowed; later lines use the full width. @Composable private fun ArtistBio( text: String, @@ -602,14 +601,12 @@ private fun ArtistBio( ceil(with(density) { (BIO_ACTION_HEIGHT - BIO_ACTION_OFFSET).toPx() } / lineHeightPx) .toInt() .coerceAtLeast(1) - val collapsedReserveLines = maxOf(reserveLines, 3) val bioLines = remember( text, fullWidth, reserve, reserveLines, - collapsedReserveLines, collapsed, expanded, moreText, @@ -623,7 +620,7 @@ private fun ArtistBio( style, fullWidth, reserve, - collapsedReserveLines, + reserveLines, moreText, maxLines = 3, )