You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sticky toast text runs under the close button in long locales #1549
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.
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
Set the app locale to French: adb shell cmd locale set-app-locales to.bitkit.dev --locales fr.
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).
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