Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1591

Fix nuxeo-user-avatar text overflow using 3+ part name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.x, 3.0.x
    • Component/s: Widgets

      Description

      nuxeo-user-avatar uses the first character of each space-delimited part of the User's full name, rather than the first character of the First Name and Last Name each. This means that 3 or more initials may be rendered and overflow outside the filled circle.

      Steps to Reproduce:

      1. Create a user with a full name comprising 3 or more parts, for example:
        First Name: "First Middle"
        Last Name: "Middle Last"
      2. Create a Document and navigate to its View tab to observe metadata.

      Expected result: nuxeo-user-avatar displays "FL" for the user initials.

      Actual result: nuxeo-user-avatar displays "FMML" overflowing outside filled circle.

      (See attached picture for visual reference)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: