Skip to content

Commit

Permalink
Merge branch 'improve-search-prompt' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
shorthouse committed Oct 15, 2023
2 parents d1aef63 + e1dbb32 commit ea90904
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private fun CoinListContent(
modifier: Modifier = Modifier
) {
LazyColumn(
contentPadding = PaddingValues(start = 12.dp, top = 12.dp, bottom = 12.dp),
contentPadding = PaddingValues(start = 12.dp, top = 12.dp),
modifier = modifier
) {
item {
Expand Down Expand Up @@ -244,10 +244,10 @@ private fun CoinListContent(
Column(
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center,
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 12.dp)
modifier = Modifier.fillMaxWidth()
) {
Spacer(Modifier.height(12.dp))

Text(
text = stringResource(R.string.cant_find_coin_prompt),
style = MaterialTheme.typography.bodySmall,
Expand All @@ -261,6 +261,8 @@ private fun CoinListContent(
textAlign = TextAlign.Center,
color = MaterialTheme.colorScheme.onSurfaceVariant
)

Spacer(Modifier.height(12.dp))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
<string name="empty_chart_range_message">No chart range data available</string>
<string name="empty_chart_message_short">No chart data</string>
<string name="cant_find_coin_prompt">Can\'t find the coin you\'re looking for?</string>
<string name="search_coin_prompt">Try searching for it instead</string>
<string name="search_coin_prompt">Try using the search function!</string>
</resources>

0 comments on commit ea90904

Please sign in to comment.