mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update avatar style
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user