Skip to content

Commit aed12ad

Browse files
author
Nikhil Singhal
committed
Avatar fix: width/height 100% + object-fit cover
Previous fix only set object-fit without constraining dimensions. Material CSS sets .md-author to 1.6rem with overflow:hidden but img had no size constraint, causing bottom-half clip.
1 parent c9b5869 commit aed12ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/stylesheets/extra.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
}
6363

6464
/* --- Blog author avatar fix --- */
65-
.md-post .md-author img,
66-
.md-post__meta .md-author img {
65+
.md-author img {
66+
width: 100% !important;
67+
height: 100% !important;
6768
object-fit: cover;
6869
object-position: center top;
6970
}

0 commit comments

Comments
 (0)