Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5ac222e

Browse files
dbkrrobintown
andauthored
Fix alignment of user menu avatar (#12289)
* Fix alignment of user menu avatar #12267 made the avatar a couple of pixels out of alignment with the space icons. It just needed to be moved 2px to the right to match the 18px margin of the space icons (including the padding from the black border). Also change elements in the user menu to block elements so they don't generate extra vertical space in the user menu div, which was causing the hairline to be too far down. * Update snapshots * Typo Co-authored-by: Robin <[email protected]> * Reference the span by class * The img wasn't actually necessary here --------- Co-authored-by: Robin <[email protected]>
1 parent db6f7da commit 5ac222e

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed
Loading
Loading
Loading

Diff for: res/css/structures/_SpacePanel.pcss

+9-1
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,16 @@ limitations under the License.
390390
.mx_UserMenu {
391391
padding-bottom: 12px;
392392
border-bottom: 1px solid $separator;
393-
margin: 12px 14px 4px 16px;
393+
margin: 12px 14px 4px 18px;
394+
width: min-content;
394395
max-width: 226px;
396+
397+
/* Display the container and img here as block elements so they don't take
398+
* up extra vertical space.
399+
*/
400+
.mx_UserMenu_userAvatar_BaseAvatar {
401+
display: block;
402+
}
395403
}
396404
}
397405

0 commit comments

Comments
 (0)