feat: add spoiler image

This commit is contained in:
Tom (plebeius.eth)
2024-06-19 18:50:24 +02:00
parent be2cd521a3
commit 9f5f92f714
7 changed files with 16 additions and 29 deletions
@@ -31,18 +31,6 @@
display: inline-block;
}
.spoilerThumbnail {
width: var(--maxWidth);
height: var(--maxHeight);
display: inline-block;
background-color: black;
color: white !important;
display: flex;
cursor: pointer;
justify-content: center;
align-items: center;
}
.mediaPaddingWrapper {
padding-bottom: 5px;
display: inline-flex;
+1 -3
View File
@@ -223,9 +223,7 @@ const CatalogPost = ({ post }: { post: Comment }) => {
>
{threadIcons}
{spoiler ? (
<span className={styles.spoilerThumbnail}>
<span className={styles.spoilerText}>{t('spoiler')}</span>
</span>
<img src='/assets/spoiler.png' alt='' />
) : (
<CatalogPostMedia commentMediaInfo={commentMediaInfo} isOutOfFeed={isDescription || isRules} linkWidth={linkWidth} linkHeight={linkHeight} />
)}