Skip to content

fix: close the gap above the Categories & rules footer - #598

Merged
an1ndra merged 2 commits into
Developfrom
fix/inbox-rules-footer-gap
Dec 2, 2026
Merged

an1ndra merged 2 commits into
Developfrom
fix/inbox-rules-footer-gap

Conversation

@an1ndra

@an1ndra an1ndra commented Dec 1, 2026

Copy link
Copy Markdown
Owner

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.

  • On emulator-5556 the gap between the last section's text and the footer is 55px (~21dp), down from 87px (~33dp).
  • InboxRulesFooterGapTest pins the conditional spacer and the footer.
  • test-inbox-categories-control.sh now measures the gap and fails above 63px (~24dp).

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)`.
@an1ndra
an1ndra merged commit 4a4206c into Develop Dec 2, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant