Skip to content

sticky toast text runs under the close button in long locales #1549

Open

Description

@jvsena42

Observed

The Pubky sign-in loading toast ("Loading Your Pubky Profile") has a close X, because the toast doesn't auto-hide. In French on a 360 dp wide screen, the title runs under that X: "…du profil Pubky" sits beneath the icon. All 8 other locales checked (en, ca, it, pl, pt, es, de, ar) render without overlap, and nothing is clipped. In ca, it and pl the title wraps and leaves "Pubky" alone on the second line.

en vs fr loading toast

Found while checking the translations from #1546 (merged fdfc971) on the emulator at wm size 1080x2400, density 480.

Expected

Toast text never runs under the close button, in any locale.

Steps to reproduce

  1. Set the app locale to French: adb shell cmd locale set-app-locales to.bitkit.dev --locales fr.
  2. On a device about 360 dp wide, with a Pubky profile created in Bitkit, force-stop Bitkit and open a fresh pubkyauth://signin_grant link (journeys/pubky-auth/signin-cold-start.xml steps 1–4).
  3. Keep the loading toast up, for example with airplane mode right after am start, and look at the title next to the X.

Root cause

In ToastView.kt, the close IconButton is overlaid with Box(contentAlignment = TopEnd) when autoHide = false (:204-224). The content Column has only padding(16.dp) and reserves no space for the icon (:181-199). Any title that fills the first line runs under the X. ca, it and pl avoid it only because they wrap earlier.

Suggested fix

Add about 32 dp of end padding to the content when !toast.autoHide. That fixes every locale and every sticky toast. A shorter fr title such as "Chargement du profil Pubky" would hide this one case only.

Activity

  1. added this to the 3.0.5 milestone on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions