fix: tags list description used parsed text

This commit is contained in:
shuai 2023-03-15 11:36:21 +08:00
parent bad0eaf12d
commit 6de0482bbb
2 changed files with 9 additions and 3 deletions

View File

@ -294,6 +294,12 @@ img:not(a img, img.broken) {
white-space: pre-wrap;
}
.reset-p {
p {
margin-bottom: 0;
}
}
@keyframes bg-fade-out {
0%,
25% {

View File

@ -13,7 +13,7 @@ import { useTranslation } from 'react-i18next';
import { usePageTags } from '@/hooks';
import { Tag, Pagination, QueryGroup, TagsLoader } from '@/components';
import { formatCount } from '@/utils';
import { formatCount, htmlToReact } from '@/utils';
import { tryNormalLogged } from '@/utils/guard';
import { useQueryTags, following } from '@/services';
import { loggedUserInfoStore } from '@/stores';
@ -111,8 +111,8 @@ const Tags = () => {
<Card.Body className="d-flex flex-column align-items-start">
<Tag className="mb-3" data={tag} />
<p className="fs-14 flex-fill text-break text-wrap text-truncate-3">
{tag.original_text}
<p className="fs-14 flex-fill text-break text-wrap text-truncate-3 reset-p">
{htmlToReact(tag.parsed_text)}
</p>
<div className="d-flex align-items-center">
<Button