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.png

It would be more like:




avatar.jpg

Thanks
 

Ahmad Fahad

New member
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.jpg
    9.jpg
    110.8 KB · Views: 2
Top