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) && ( {!(isDescription || isRules) && (
<> <>
{isReply && author?.avatar && ( {isReply && author?.avatar && (
<> <span className={styles.authorAvatar}>
<span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />{' '} <img src={avatarImageUrl} alt='' />
</> </span>
)} )}
(u/ (u/
<Tooltip <Tooltip
+3 -3
View File
@@ -75,9 +75,9 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
{!(isDescription || isRules) && ( {!(isDescription || isRules) && (
<> <>
{isReply && author?.avatar && ( {isReply && author?.avatar && (
<> <span className={styles.authorAvatar}>
<span className={styles.authorAvatar} style={{ backgroundImage: `url(${avatarImageUrl})` }} />{' '} <img src={avatarImageUrl} alt='' />
</> </span>
)} )}
(u/ (u/
<Tooltip <Tooltip
+16 -7
View File
@@ -505,15 +505,18 @@
} }
.authorAvatar { .authorAvatar {
width: 22px; width: 24px;
height: 22px;
background-size: 100%;
background-position: center;
background-repeat: no-repeat;
display: inline-block; display: inline-block;
vertical-align: top; position: relative;
padding-right: 2px;
} }
.authorAvatar img {
width: 24px;
max-height: 24px;
position: absolute;
bottom: -5px;
}
.stateString { .stateString {
white-space: nowrap; white-space: nowrap;
@@ -540,7 +543,13 @@
} }
.authorAvatar { .authorAvatar {
vertical-align: middle; width: 20px;
}
.authorAvatar img {
width: 20px;
max-height: 20px;
bottom: -3px;
} }
} }