style: fix avatars

This commit is contained in:
Tom (plebeius.eth)
2024-07-19 18:06:00 +02:00
parent 95233944c1
commit d76b03bf3f
3 changed files with 18 additions and 7 deletions
+5 -1
View File
@@ -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={
+5 -1
View File
@@ -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={
+8 -5
View File
@@ -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) {