corbado/javascript

Short email for passkey button

Closed this issue · 0 comments

Why

A very long email is not looking good on the passkey button (screenshot 1). Therefore short the email address if the width of the email is bigger than the width of the button. (screenshot 1)

TODOS

  • Detect if the email, username or phone number is too long for the passkey button and short it by adding 3 dots (...) on the end of it.
    (similar to identifier field of verification and error screens)
  • Make sure that the ">" icon is always in the right position

Screenshots

image