mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style: fix avatars
This commit is contained in:
@@ -100,7 +100,11 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }:
|
|||||||
</span>
|
</span>
|
||||||
{!(isDescription || isRules) && (
|
{!(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/
|
(u/
|
||||||
<Tooltip
|
<Tooltip
|
||||||
children={
|
children={
|
||||||
|
|||||||
@@ -74,7 +74,11 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
|
|||||||
</span>
|
</span>
|
||||||
{!(isDescription || isRules) && (
|
{!(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/
|
(u/
|
||||||
<Tooltip
|
<Tooltip
|
||||||
children={
|
children={
|
||||||
|
|||||||
@@ -505,14 +505,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.authorAvatar {
|
.authorAvatar {
|
||||||
width: 32px;
|
width: 22px;
|
||||||
height: 32px;
|
height: 22px;
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: top;
|
||||||
border-radius: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
@@ -531,7 +530,11 @@
|
|||||||
.loadingString {
|
.loadingString {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.authorAvatar {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
@media (min-width: 640px) {
|
||||||
|
|||||||
Reference in New Issue
Block a user