Fix image avatar alignment in notifications (#2906)

This commit is contained in:
David Wheatley 2021-06-11 12:13:57 +01:00 committed by GitHub
parent 12c9334448
commit 97ed44f0f2

View File

@ -136,6 +136,14 @@
.Avatar--size(24px); .Avatar--size(24px);
grid-area: avatar; grid-area: avatar;
} }
// Since images don't have baselines, aligning against the baseline won't work.
// Instead we need to do some manual hackery to fix then, otherwise they won't
// be correctly vertically aligned.
img.Avatar {
align-self: flex-start;
margin-top: -2px;
}
&-icon { &-icon {
font-size: 14px; font-size: 14px;