mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat: add spoiler image
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user