Skip to content

Commit

Permalink
Minor cleanup: Fix spacing & update preview data.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskioko committed Mar 30, 2023
1 parent eef5d91 commit e88e24b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ private fun AllSeasonsTitle(
text = stringResource(id = R.string.title_all_seasons),
style = MaterialTheme.typography.labelMedium.copy(MaterialTheme.colorScheme.secondary),
)

Spacer(modifier = Modifier.height(8.dp))
}

}
Expand All @@ -217,7 +215,7 @@ private fun SeasonDetailScreenPreview(
Surface {
SeasonDetailScreen(
state = state,
seasonName = "Loki",
seasonName = "Specials",
onBackClicked = {},
onEpisodeClicked = {},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ val seasonDetails = SeasonDetails(
seasonName = "Specials",
episodeCount = 8,
watchProgress = 0.4f,
episodes = listOf(
episode,
episode,
episode,
episode,
)
episodes = List(8) {
episode
}
)

class SeasonPreviewParameterProvider : PreviewParameterProvider<SeasonDetailsState> {
Expand All @@ -45,5 +42,4 @@ class SeasonPreviewParameterProvider : PreviewParameterProvider<SeasonDetailsSta
LoadingError(message = "Something went Wrong ")
)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ fun CollapsableContent(
modifier = modifier
) {

Spacer(modifier = Modifier.height(8.dp))

SeasonTitleHeader(
title = headerTitle,
episodesCount = episodesCount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fun WatchNextContent(

itemsIndexed(episodeList) { index, episode ->
val value = if (index == 0) 32 else 8
Spacer(modifier = Modifier.height(value.dp))
Spacer(modifier = Modifier.width(value.dp))

WatchNextItem(
episode = episode,
Expand Down

0 comments on commit e88e24b

Please sign in to comment.