XF 2.0 How to increase width of username/avatar area?

DChapman

Member
Greetings,

I have multiple users who have usernames that are long enough to cause a second row. Is it possible to increase the size of that area so it doesn't happen? Or is there another easy solution that is recommended?

Thank you!
 

Attachments

  • width.webp
    width.webp
    13.5 KB · Views: 63
insert this code in your extra.less template & adjust the number to whatever you like

Code:
.message-cell.message-cell--user {
    flex: 0 0 200px;
}

That's a very genuine response but not necessary to use CSS.

You can do the same thing if you go to appearance -> style properties -> messages -> message user info block width

From there you can change the option to increase the width.
 
That's a very genuine response but not necessary to use CSS.

You can do the same thing if you go to appearance -> style properties -> messages -> message user info block width

From there you can change the option to increase the width.

True but its much more convenient IMO to write in the extra.less template with some comments so you can easily refer to whenever you need instead of messing with the default setting.
 
Top Bottom