Avatar thumbnail sizing question - Suffusion Buddypress Pack

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Avatar thumbnail sizing question - Suffusion Buddypress Pack

Postby Bifurcated Rump » 21 Apr 2012, 18:59

Hi,

When uploading an avatar to Buddypress, there is the original size and the thumbnail size.
I'm not sure what the defaults are (cannot recall if I ever changed them), but for my setup, the original avatar is a picture that is 150x150, and the thumbnail file is 50x50.
In a couple places, the thumbnail stretches the 50x50 file to display at 60x60. This looks bad.

My question concerns class="activity-avatar". Using Firebug, I can see the HTML in the <img> tag says 50x50, but the CSS for it reads 60x60.
The CSS comes from line 328 of bpp.css, v1.03. Editing this file fixes the problem. But I assume I will lose this if I update the Suffusion Buddypress Pack plugin. Is there a way to fix this with CSS in my child theme?

(The other is id="whats-new-avatar". The size for this seems to be set with HTML, not CSS, and I'm not yet sure it's related to Suffusion, so I'm still looking.)

Thanks!
User avatar
Bifurcated Rump
 
Posts: 3
Joined: 21 Jan 2011, 09:26

Re: Avatar thumbnail sizing question - Suffusion Buddypress

Postby drake » 21 Apr 2012, 19:44

By adding any custom CSS definition at Suffusion Options -> Back-end -> Custom Includes -> Custom Styles will overwrite the styles for any element defined in css files, no matter if these files prepend by the theme, plugins or wordpress itself. Definitions added at Custom Styles is also preserved in case of upgrades for theme/plugins/wordpress. So, if you go to Custom Styles and add:
Code: Select all
.activity-avatar {width:50px;height:50px;}

this definition will take priority over the bpp.css one.
drake
 
Posts: 3859
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Avatar thumbnail sizing question - Suffusion Buddypress

Postby Bifurcated Rump » 21 Apr 2012, 20:23

Sweet!

I actually had to add
Code: Select all
ul.activity-list li img.avatar {width:50px;height:50px;}
, but I wouldn't have figured that out without your help.

Thanks again!
User avatar
Bifurcated Rump
 
Posts: 3
Joined: 21 Jan 2011, 09:26


Return to Support Requests

Who is online

Users browsing this forum: Google [Bot], lodiploca and 5 guests