fix(mailbox): anchor account-switcher dropdown to its trigger #165

Merged
JMR-dev merged 1 commits from fix-147-drawer-dropdown-anchor into main 2026-07-02 21:50:01 +00:00
JMR-dev commented 2026-07-02 21:38:52 +00:00 (Migrated from github.com)

Summary

  • The account-switcher TextButton and its DropdownMenu in AccountSwitcher (FolderDrawer.kt) were siblings inside the drawer's outer Column, so the DropdownMenu's Popup anchored to the whole Column (the full-height drawer sheet) instead of the button itself, making it open near the bottom-left rather than below the switcher.
  • Wrapped the TextButton and DropdownMenu together in a shared Box, the standard Compose pattern for anchoring a dropdown to a specific trigger. No changes to the switcher's appearance or the folder list.

Closes #147

Test plan

  • assembleDebug, testDebugUnitTest, lintDebug, ktlintCheck, detekt, compileDebugAndroidTestKotlin all pass locally (JDK 21)
  • CI green

🤖 Generated with Claude Code

## Summary - The account-switcher `TextButton` and its `DropdownMenu` in `AccountSwitcher` (`FolderDrawer.kt`) were siblings inside the drawer's outer `Column`, so the `DropdownMenu`'s `Popup` anchored to the whole `Column` (the full-height drawer sheet) instead of the button itself, making it open near the bottom-left rather than below the switcher. - Wrapped the `TextButton` and `DropdownMenu` together in a shared `Box`, the standard Compose pattern for anchoring a dropdown to a specific trigger. No changes to the switcher's appearance or the folder list. Closes #147 ## Test plan - [x] `assembleDebug`, `testDebugUnitTest`, `lintDebug`, `ktlintCheck`, `detekt`, `compileDebugAndroidTestKotlin` all pass locally (JDK 21) - [ ] CI green 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.