[wp-trac] [WordPress Trac] #19421: Admin bar avatar dimensions
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 2 22:38:17 UTC 2011
#19421: Admin bar avatar dimensions
--------------------------+-----------------------------
Reporter: linuxologos | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Admin Bar | Version: 3.3
Severity: normal | Keywords:
--------------------------+-----------------------------
Since [18683] the avatar is called as 28x28 (it used to be 16x16). It
seems, that matches the total admin bar height. However it is forced to
16x16 through CSS[[BR]]
{{{
#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
...
height: 16px;
width: 16px;
...
}
}}}
I don't know if there's a reason for this inconsistency.
Say there is a reason. If avatar does get 28x28, adding the 1px border, it
ends up as a 30x30 item, which overflows the height of the admin bar and
seems a bit ugly.
Some plugins may use the value of size given in get_avatar() to pass
inline styles. In such case, default CSS (16x16) is overridden and the
problem is obvious.
If we really want the avatar to be a 16x16 img, get_avatar() should
perhaps be given that exact value. If there's some reason and get_avatar()
should be given a greater value, then the maximum should possibly be a
26x26 (let 2 px for top+bottom borders).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19421>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list