feat(settings): add plebbit options

This commit is contained in:
Tom (plebeius.eth)
2024-06-18 11:50:17 +02:00
parent 7f3630e289
commit bf09de98f9
6 changed files with 340 additions and 1 deletions
+7 -1
View File
@@ -190,10 +190,16 @@ const CatalogPost = ({ post }: { post: Comment }) => {
);
const { imageSize, showOPComment } = useCatalogStyleStore();
const maxWidth = imageSize === 'Large' ? '250px' : '150px';
const maxHeight = imageSize === 'Large' ? '250px' : '150px';
const CSSProperties = {
'--maxWidth': maxWidth,
'--maxHeight': maxHeight,
} as React.CSSProperties;
return (
<>
<div className={`${styles.post} ${imageSize === 'Large' ? styles.large : ''}`}>
<div className={`${styles.post} ${imageSize === 'Large' ? styles.large : ''}`} style={CSSProperties}>
<div onMouseOver={() => setHoveredCid(isDescription ? 'd' : isRules ? 'r' : cid)} onMouseLeave={() => setHoveredCid(null)}>
{hidden ? (
<Link to={postLink}>