Repository navigation
fix: close the gap above the Categories & rules footer - #598
Merged
Merged
Conversation
The 12dp spacer that separates rule sections was also drawn after the last one, where it stacked with SettingsFooter's own 6dp top gap. It is now drawn between sections only; the note sits 55px under the last section instead of 87px on the 420dpi emulator.
The footer fix wraps the grouped rules in `.entries.toList()` so each section
knows its index; noSectionIsDrawnBeforeTheRulesArrive pinned the exact
expression and went red. The check now matches the guarded `rules?.let {
InboxCategoryRules.group(it)` and still refuses an unguarded `group(rules)`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 12dp spacer between rule sections was also drawn after the last one, where it stacked with
SettingsFooter's own 6dp top gap and left a wide band above "Rules run before automatic sorting…". The spacer is now drawn between sections only.emulator-5556the gap between the last section's text and the footer is 55px (~21dp), down from 87px (~33dp).InboxRulesFooterGapTestpins the conditional spacer and the footer.test-inbox-categories-control.shnow measures the gap and fails above 63px (~24dp).