Skip to content

fix(auth): use fixed padding for method picker provider buttons (#2424) - #2426

Merged
russellwheatley merged 2 commits into
version-10.0.0-beta04from
fix/2424-method-picker-button-truncation
Jul 28, 2026
Merged

fix(auth): use fixed padding for method picker provider buttons (#2424)#2426
russellwheatley merged 2 commits into
version-10.0.0-beta04from
fix/2424-method-picker-button-truncation

Conversation

@just1and0

@just1and0 just1and0 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Provider button labels (e.g. "Sign in with Facebook") were truncating on standard phone displays because AuthMethodPicker used percentage-based horizontal padding (23% of screen width), leaving only ~54% of the screen for button content.
  • Replaced with fixed 24dp horizontal padding and a 400dp max-width constraint. This keeps buttons readable on phones while capping width on tablets.

Fixes #2424

Screenshot 2026-07-27 at 12 22 27

Test plan

  • Open the auth method picker on a standard phone (~360dp wide) — verify "Sign in with Facebook" and other labels display fully without ellipsis
  • Open on a tablet or wide screen — verify buttons are capped at a reasonable width and centered
  • Test with larger font-size accessibility settings — verify labels still fit
  • Verify the "Continue as…" button (if present) also benefits from the wider layout
  • Test with localized labels (e.g. German) if possible

Replace percentage-based horizontal padding (23% of screen width) with
fixed 24dp padding and a 400dp max-width constraint. The old approach
left only ~54% of screen width for buttons, causing labels like
"Sign in with Facebook" to truncate on standard phone displays.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces BoxWithConstraints with a standard Box and simplifies the layout of the LazyColumn inside AuthMethodPicker by using a maximum width constraint of 400.dp and fixed horizontal padding. The reviewer correctly identified that on wider screens, the Box will wrap its content and align to the left instead of centering. To fix this, the reviewer suggested adding .fillMaxWidth() to the Box modifier so that contentAlignment = Alignment.TopCenter can take effect.

@russellwheatley
russellwheatley merged commit cbbd262 into version-10.0.0-beta04 Jul 28, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in studio-2394994192-60a69 Jul 28, 2026
@russellwheatley
russellwheatley deleted the fix/2424-method-picker-button-truncation branch July 28, 2026 10:53
demolaf added a commit that referenced this pull request Jul 29, 2026
…2404)

* fix(auth): validate display name only when required in sign-up form (#2383)

* fix(auth): validate display name only when required in sign-up form

* fix(auth): use locale-safe matcher for sign-up button in test

* fix(internal): append CHAR_LIMIT to translation descriptions in export script (#2417)

Fixes #1613

* fix(auth): mitigate tapjacking on the auth activity window (#2416)

Fixes #2041

* sample(app): add Firestore, Database & Storage demos to sample app (#2406)

* fix(auth): allow customizing top app bar colors via AuthUITheme (#2391)

* fix(auth): handle edge-to-edge insets in MFA challenge and auth screens (#2413)

* fix(auth): use fixed padding for method picker provider buttons (#2424) (#2426)

* fix(firestore): catch InterruptedException in FirestorePagingSource

* fix(firestore): drop load error logging and restore rx error handler in test

* fix(firestore): return LoadResult.Error for every load failure instead of throwing

* fix(firestore): fix PageKey.equals NPE on null snapshots and add hashCode

* test(firestore): run paging source test in CI via robolectric and replace sleeps with latches

* fix(firestore): log genuine load failures while keeping cancellations silent

---------

Co-authored-by: Oluwatobi Shokunbi <ayoshokz@gmail.com>
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.

2 participants