Skip to content

Commit

Permalink
fix goal excess range buttons margin
Browse files Browse the repository at this point in the history
  • Loading branch information
Razeeman committed Dec 22, 2024
1 parent 4970e1c commit 9d40001
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,12 @@ class StatisticsDetailViewDataMapper @Inject constructor(
}

if (chartLengthViewData.isNotEmpty()) {
// Update margin top depending if has buttons before.
val hasButtonsBefore = items.lastOrNull() is StatisticsDetailButtonsRowViewData
val marginTopDp = if (hasButtonsBefore) -10 else 4
items += StatisticsDetailButtonsRowViewData(
block = StatisticsDetailBlock.GoalChartLength,
marginTopDp = -10,
marginTopDp = marginTopDp,
data = chartLengthViewData,
)
}
Expand Down

0 comments on commit 9d40001

Please sign in to comment.