XF 2.2 Limit The Signature Display Area

orex

Member
We recently moved from vb and we have this template edit where we set the signature to 500x200px to prevent oversized signatures and have uniform size.
That applies to the entire signature space not just the image. So even if there's no image in the signature and just text, anything that exceeded 500x200px will not be displayed in postbit and profile. How do we apply the same thing here in xenforo? Below is the template edit we used.

<div class="signaturecontainer" style="width: 500px; height: 200px; overflow:hidden;">{vb:raw post.signature}</div>
 
Put the following code in the extra.less template of your style and see if it works:

.message-signature { max-width: 500px; max-height: 200px; }
 
Code:
.message-signature
{
max-height: 200px;
overflow-x: auto;
overflow-y: auto;
}

Template: extra.less

Not forking for me.


Code:
@media (max-width: @xf-responsiveNarrow) {

    .message-signature {
    
    display:block;
    }
}

i am using this code for show in mobile. But I can't adjust the height. When I use your code, it doesn't show at all on mobile.
 
Not forking for me.


Code:
@media (max-width: @xf-responsiveNarrow) {

    .message-signature {
   
    display:block;
    }
}

i am using this code for show in mobile. But I can't adjust the height. When I use your code, it doesn't show at all on mobile.
Spoons fine here. Maybe post your URL?
 
Top Bottom