From 174d79eeb7ef87ee7d1599d53ea2dc126e92ae27 Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Sun, 4 Oct 2026 01:35:30 +0000 Subject: [PATCH] artists: keep the label-to-count gap the same across artist types The album count sits in the star/more button row, so the row is 48dp tall only when those buttons are present, shifting the count for album artists versus credited track artists. Pin the row to that height either way. --- .../kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 84b02e58..8d0c26ca 100644 --- a/app/src/main/kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt +++ b/app/src/main/kotlin/com/subtracks/ui/library/ArtistDetailScreen.kt @@ -15,6 +15,7 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.aspectRatio +import androidx.compose.foundation.layout.defaultMinSize import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height @@ -371,8 +372,10 @@ fun ArtistDetailScreen( style = MaterialTheme.typography.labelLarge, color = MaterialTheme.colorScheme.onSurfaceVariant, ) + // Hold the row at the button height even without the buttons, so the + // label-to-count gap is the same for every artist type. Row( - modifier = Modifier.fillMaxWidth(), + modifier = Modifier.fillMaxWidth().defaultMinSize(minHeight = 48.dp), verticalAlignment = Alignment.CenterVertically, ) { Text(