mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
home: tighten the genre chip rows
This commit is contained in:
@@ -271,6 +271,7 @@ private val ARTIST_TILE_SIZE = 104.dp
|
|||||||
private val TILE_SPACING = 8.dp
|
private val TILE_SPACING = 8.dp
|
||||||
private val ARTIST_SPACING = 16.dp
|
private val ARTIST_SPACING = 16.dp
|
||||||
private val SECTION_CONTENT_TOP = 4.dp
|
private val SECTION_CONTENT_TOP = 4.dp
|
||||||
|
private val GENRE_ROW_SPACING = 4.dp
|
||||||
private const val GENRE_ROWS = 3
|
private const val GENRE_ROWS = 3
|
||||||
|
|
||||||
private fun LazyListScope.albumRow(
|
private fun LazyListScope.albumRow(
|
||||||
@@ -353,7 +354,7 @@ private fun LazyListScope.genreBlock(
|
|||||||
.horizontalScroll(rememberScrollState())
|
.horizontalScroll(rememberScrollState())
|
||||||
.padding(start = 16.dp, end = 16.dp, top = SECTION_CONTENT_TOP),
|
.padding(start = 16.dp, end = 16.dp, top = SECTION_CONTENT_TOP),
|
||||||
) {
|
) {
|
||||||
Column(verticalArrangement = Arrangement.spacedBy(TILE_SPACING)) {
|
Column(verticalArrangement = Arrangement.spacedBy(GENRE_ROW_SPACING)) {
|
||||||
repeat(GENRE_ROWS) { row ->
|
repeat(GENRE_ROWS) { row ->
|
||||||
Row(horizontalArrangement = Arrangement.spacedBy(TILE_SPACING)) {
|
Row(horizontalArrangement = Arrangement.spacedBy(TILE_SPACING)) {
|
||||||
genres.forEachIndexed { index, genre ->
|
genres.forEachIndexed { index, genre ->
|
||||||
|
|||||||
Reference in New Issue
Block a user