XF 2.2 Increase size of Avatar of Your Account nav item

Mr Lucky

Well-known member
I want to increase the user account navigation link Avatar in desktop view.

I want to remove the (unnecessray) username, but the the avatar by itself is not obvious.

So I want to increase the size. There is plenty of room if the padding for that one item is removed. So the conversation, alert and serach icons would remain as they are.

I'm sure this must be possible.

Instead of this:
Screenshot 2020-09-29 at 09.55.14.webp

It would be more like:




avatar.webp

Thanks
 
I do not know in the required place
But the way to enlarge it in conversations and messages is as follows

Increase the size of the avatar in the version 2.2

extra.less :

CSS:
.avatar.avatar--o {
max-width: 165px;
width: auto;
height: auto;
max-height: 310px;
}

message_macros :

Look for : <xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
on line 8

Change character "m" to "o"
To be as
<xf:avatar user="$user" size="o" defaultname="{$fallbackName}" itemprop="image" />

Then go
-
Style settings - Messages - Message user info block width :
Change 120px to 160px
save

Attached example
 

Attachments

  • 9.webp
    9.webp
    20.9 KB · Views: 3
Top Bottom