mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
tuck the artist album row and its controls tight to the image
Keep the star and more pinned to the right of the row, top-align the row so the album count sits close under the image, and let the centred shuffle button's lower half pass just above the controls.
This commit is contained in:
@@ -102,7 +102,6 @@ private val SHUFFLE_HEIGHT = 48.dp
|
||||
private val SHUFFLE_ICON = 30.dp
|
||||
private val SHUFFLE_RESERVE = 80.dp
|
||||
private val SHUFFLE_HANG = SHUFFLE_HEIGHT / 2
|
||||
private val SHUFFLE_ROW_CLEARANCE = TITLE_INSET + SHUFFLE_WIDTH + 8.dp
|
||||
|
||||
internal fun estimateScrollPx(
|
||||
index: Int,
|
||||
@@ -310,8 +309,8 @@ fun ArtistDetailScreen(
|
||||
}
|
||||
}
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth().padding(start = 16.dp, end = SHUFFLE_ROW_CLEARANCE, top = 16.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier.fillMaxWidth().padding(start = 16.dp, end = 8.dp, top = 16.dp),
|
||||
verticalAlignment = Alignment.Top,
|
||||
) {
|
||||
Text(
|
||||
text = "${artist?.albumCount ?: 0} ${if (artist?.albumCount == 1L) "album" else "albums"}",
|
||||
|
||||
Reference in New Issue
Block a user