Commit 2303172
committed
Toolbar: Make the user avatar image circular.
Make the user avatar in the admin bar circular, both in the top-level toolbar item and the account dropdown. This aligns with the block editor, where avatars are already circular while site logos are square, and follows a common convention that helps distinguish an avatar from a site icon. The avatar is also enlarged slightly on both the desktop and mobile viewports to offset the area lost to the circular crop and to keep it balanced with the surrounding toolbar icons, as follows:
- Desktop viewport: bump the size from 18px to 20px; add border-radius: 50%
- Mobile viewport: bump the size from 26px to 28px; add border-radius: 50%
Developed in WordPress#11799.
Props fushar, scruffian, joen, sabernhardt, jeryj.
Fixes #64667. See #65083, #65088.
git-svn-id: https://develop.svn.wordpress.org/trunk@62592 602fd350-edb4-49c9-b593-d223f7449a821 parent ffbc198 commit 2303172
2 files changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
458 | 459 | | |
459 | 460 | | |
460 | 461 | | |
| |||
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
484 | | - | |
| 485 | + | |
485 | 486 | | |
486 | | - | |
| 487 | + | |
| 488 | + | |
487 | 489 | | |
488 | 490 | | |
489 | 491 | | |
| |||
977 | 979 | | |
978 | 980 | | |
979 | 981 | | |
980 | | - | |
| 982 | + | |
981 | 983 | | |
982 | | - | |
983 | | - | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
984 | 987 | | |
985 | 988 | | |
986 | 989 | | |
| |||
0 commit comments