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) && (
|
{!(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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user