style: fix avatars

This commit is contained in:
Tom (plebeius.eth)
2024-07-19 18:06:00 +02:00
parent 95233944c1
commit d76b03bf3f
3 changed files with 18 additions and 7 deletions
+5 -1
View File
@@ -100,7 +100,11 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }:
</span>
{!(isDescription || isRules) && (
<>
{isReply && author?.avatar && <span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />}
{isReply && author?.avatar && (
<>
<span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />{' '}
</>
)}
(u/
<Tooltip
children={
+5 -1
View File
@@ -74,7 +74,11 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
</span>
{!(isDescription || isRules) && (
<>
{isReply && author?.avatar && <span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />}
{isReply && author?.avatar && (
<>
<span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />{' '}
</>
)}
(u/
<Tooltip
children={
+8 -5
View File
@@ -505,14 +505,13 @@
}
.authorAvatar {
width: 32px;
height: 32px;
width: 22px;
height: 22px;
background-size: 100%;
background-position: center;
background-repeat: no-repeat;
display: inline-block;
vertical-align: middle;
border-radius: 16px;
vertical-align: top;
}
@media (max-width: 640px) {
@@ -531,7 +530,11 @@
.loadingString {
margin-top: 10px;
margin-left: 5px;
}
}
.authorAvatar {
vertical-align: middle;
}
}
@media (min-width: 640px) {