Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Improve search margins
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliyan Germanov committed Dec 6, 2021
1 parent d4a0e34 commit bc90f9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/ivy/wallet/ui/home/HomeMoreMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private fun ColumnScope.Content(
onBufferClick: () -> Unit,
onCurrencyClick: () -> Unit,
) {
Spacer(Modifier.height(32.dp))
Spacer(Modifier.height(24.dp))

val ivyContext = LocalIvyContext.current
SearchButton {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/ivy/wallet/ui/search/SearchScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ private fun UI(
overdueExpenses = 0.0,
history = transactions,
onPayOrGet = { },
dateDividerMarginTop = 16.dp,
emptyStateTitle = "No transactions",
emptyStateText = "You don't have any transactions for \"${searchQueryTextFieldValue.text}\" query."
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ fun LazyListScope.transactions(
lastItemSpacer: Dp? = null,
onPayOrGet: (Transaction) -> Unit,
emptyStateTitle: String = "No transactions",

emptyStateText: String
emptyStateText: String,
dateDividerMarginTop: Dp? = null
) {
if (upcoming.isNotEmpty()) {
item {
Expand Down Expand Up @@ -134,7 +134,8 @@ fun LazyListScope.transactions(
is TransactionHistoryDateDivider -> {
HistoryDateDivider(
date = it.date,
spacerTop = if (it == history.firstOrNull()) 24.dp else 32.dp,
spacerTop = dateDividerMarginTop
?: if (it == history.firstOrNull()) 24.dp else 32.dp,
baseCurrency = baseCurrency,
income = it.income,
expenses = it.expenses
Expand Down

0 comments on commit bc90f9d

Please sign in to comment.