update avatar style

This commit is contained in:
Tom (plebeius.eth)
2024-07-22 16:52:13 +02:00
parent ddb462b95e
commit 7646402ca4
3 changed files with 22 additions and 13 deletions
+3 -3
View File
@@ -102,9 +102,9 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }:
{!(isDescription || isRules) && (
<>
{isReply && author?.avatar && (
<>
<span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />{' '}
</>
<span className={styles.authorAvatar}>
<img src={avatarImageUrl} alt='' />
</span>
)}
(u/
<Tooltip
+3 -3
View File
@@ -75,9 +75,9 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
{!(isDescription || isRules) && (
<>
{isReply && author?.avatar && (
<>
<span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />{' '}
</>
<span className={styles.authorAvatar}>
<img src={avatarImageUrl} alt='' />
</span>
)}
(u/
<Tooltip
+16 -7
View File
@@ -505,15 +505,18 @@
}
.authorAvatar {
width: 22px;
height: 22px;
background-size: 100%;
background-position: center;
background-repeat: no-repeat;
width: 24px;
display: inline-block;
vertical-align: top;
position: relative;
padding-right: 2px;
}
.authorAvatar img {
width: 24px;
max-height: 24px;
position: absolute;
bottom: -5px;
}
.stateString {
white-space: nowrap;
@@ -540,7 +543,13 @@
}
.authorAvatar {
vertical-align: middle;
width: 20px;
}
.authorAvatar img {
width: 20px;
max-height: 20px;
bottom: -3px;
}
}