fix catalog cards styling

This commit is contained in:
plebeius
2026-02-25 18:33:37 +08:00
parent 8a5b793a96
commit 54cb3cc2ad
2 changed files with 3 additions and 4 deletions
@@ -10,6 +10,7 @@
width: 180px;
position: relative;
max-height: 320px;
overflow: hidden;
padding: 10px 0 3px 0;
vertical-align: top;
display: inline-block;
@@ -18,8 +19,6 @@
}
.postContent {
overflow: hidden;
max-height: 155px;
}
.large {
+2 -2
View File
@@ -18,7 +18,7 @@ import { useCommentMediaInfo } from '../../hooks/use-comment-media-info';
import useCountLinksInReplies from '../../hooks/use-count-links-in-replies';
import useFetchGifFirstFrame from '../../hooks/use-fetch-gif-first-frame';
import useHide from '../../hooks/use-hide';
import { ContentPreview } from '../../views/home/popular-threads-box';
import { removeMarkdown } from '../../lib/utils/post-utils';
import PostMenuDesktop from '../post-desktop/post-menu-desktop';
import styles from './catalog-row.module.css';
import capitalize from 'lodash/capitalize';
@@ -205,7 +205,7 @@ const CatalogPost = memo(
{content ? ': ' : ''}
</span>
)}
{content && <ContentPreview content={content} maxLength={9999} />}
{content && removeMarkdown(content)}
</>
)}
</div>