Skip to content

Commit

Permalink
Merge pull request #62 from swingmx/artist-info
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericgacoki authored Jan 3, 2025
2 parents eec4843 + a0802bf commit 2d280df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ private fun AllAlbums(
}
)
}

item(span = { GridItemSpan(allAlbumsUiState.gridCount) }) {
Spacer(modifier = Modifier.height(200.dp))
}
}

loadingState?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ private fun Artists(
}
)
}

item(span = { GridItemSpan(artistsUiState.gridCount) }) {
Spacer(modifier = Modifier.height(200.dp))
}
}

loadingState?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private fun FoldersAndTracks(
if (index == foldersAndTracksState.foldersAndTracks.folders.lastIndex &&
foldersAndTracksState.foldersAndTracks.tracks.isEmpty()
) {
Spacer(modifier = Modifier.height(150.dp))
Spacer(modifier = Modifier.height(200.dp))
}
}

Expand All @@ -287,7 +287,7 @@ private fun FoldersAndTracks(
) { index, track ->
TrackItem(
track = track,
showMenuIcon = true, // TODO: set true after fixing AlbumInfo bug
showMenuIcon = true,
isCurrentTrack = track.trackHash == currentTrackHash,
playbackState = playbackState,
baseUrl = baseUrl,
Expand All @@ -303,7 +303,7 @@ private fun FoldersAndTracks(
)

if (index == foldersAndTracksState.foldersAndTracks.tracks.lastIndex) {
Spacer(modifier = Modifier.height(150.dp))
Spacer(modifier = Modifier.height(200.dp))
}
}
}
Expand Down

0 comments on commit 2d280df

Please sign in to comment.