Problem/Motivation

Account menu in the header looks poor in some cases:

  • User picture is not shown if user uploads a custom avatar.
  • User's Display Name is not shown.
  • User's fallback avatar is based on first letter of username instead of first letter of Display Name.
  • The fallback avatar has a underline inside the avatar because it is part of the link.

Steps to reproduce

  • Install Realname module and configure it to be based on a custom field_display_name added to the user entity. Edit account and ensure username is different from real name. Then check site header on frontend theme.
  • Upload a user picture. Check site header on frontend theme.

before

Proposed resolution

  • Display user picture instead of fallback avatar, in account menu.
  • Show "Display Name" in account menu.
  • Make fallback avatar based on first letter of Display Name instead of username. (By using display name, it should correctly fallback to username if no custom display name logic is configured).

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork rivet-3568890

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jwilson3 created an issue. See original summary.

jwilson3’s picture

Issue summary: View changes
jwilson3’s picture

Issue summary: View changes
StatusFileSize
new241.21 KB

jwilson3’s picture

StatusFileSize
new178.88 KB
new115.79 KB

Before:

before

After (with avatar):

before

After (no avatar):

before

  • jwilson3 committed b11dd949 on 1.1.x
    Issue #3568890 by jwilson3: Improve user info in account menu
    
jwilson3’s picture

Status: Active » Fixed

Fixed in 1.1.3

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.