fix(post): title would wrap incorrectly in posts with no image/thumbnail

This commit is contained in:
Tom (plebeius.eth)
2025-02-05 15:55:08 +01:00
parent 4f2308fa94
commit 0e6796002c
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies, showReplies
)} )}
<div className={isHidden ? styles.postDesktopHidden : ''}> <div className={isHidden ? styles.postDesktopHidden : ''}>
{!isInPostPageView && !isDescription && !isRules && showReplies && ( {!isInPostPageView && !isDescription && !isRules && showReplies && (
<span className={styles.hideButtonWrapper}> <span className={`${styles.hideButtonWrapper} ${!hasThumbnail ? styles.hideButtonWrapperNoImage : ''}`}>
<span className={`${styles.hideButton} ${hidden ? styles.unhideThread : styles.hideThread}`} onClick={hidden ? unhide : hide} /> <span className={`${styles.hideButton} ${hidden ? styles.unhideThread : styles.hideThread}`} onClick={hidden ? unhide : hide} />
</span> </span>
)} )}
+4
View File
@@ -29,6 +29,10 @@
float: left; float: left;
} }
.hideButtonWrapperNoImage {
height: 25px !important;
}
.postDesktop .hideButton { .postDesktop .hideButton {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;