Skip to content

fix(navigation-drawer): fix edge to edge truncation - #21530

Open
david-allison wants to merge 3 commits into
ankidroid:mainfrom
david-allison:nav-drawer-insets
Open

fix(navigation-drawer): fix edge to edge truncation#21530
david-allison wants to merge 3 commits into
ankidroid:mainfrom
david-allison:nav-drawer-insets

Conversation

@david-allison

@david-allison david-allison commented Aug 16, 2026

Copy link
Copy Markdown
Member

Note

Assisted-by: Claude Fable 5

Fixes

Approach

Apply insets on the edge nearest to the screen

How Has This Been Tested?

API 37;

image image

API 30 & API 29

Screenshot 2026-08-16 at 11 00 50 Screenshot 2026-08-16 at 10 57 26

Learning (optional, can help others)

I'm unhappy with the white on white in the status bar, but I deem this to be 'Won't Fix' - it's been like this for a long time and @ShaanNarendran is working on removing the drawer.

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

Portrait and landscape with an open drawer.

Assisted-by: Claude Fable 5
Add insets on the left/right.

The width of the drawer in the usable space should be unchanged,
 so use `nav_drawer_width`. We do this as we can't set the max
 width of the drawer.

Fixes 21527

Assisted-by: Claude Fable 5
`include_navigation_drawer.xml` set the width.

Assisted-by: Claude Fable 5
@github-actions

Copy link
Copy Markdown
Contributor

Snapshot diff report vs main. Open screenshot-diff for diffs.

  • NavigationDrawerScreenshotTest: 2 changes
All 2 changed screenshots

NavigationDrawerScreenshotTest

  • navigationDrawer_compare.png
  • sideNavigationBar_compare.png

@david-allison david-allison added the Review High Priority Request for high priority review label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Review High Priority Request for high priority review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edge to edge: fix NavigationDrawerActivity

1 participant