mirror of https://gitee.com/answerdev/answer.git
fix: tags list description used parsed text
This commit is contained in:
parent
bad0eaf12d
commit
6de0482bbb
|
@ -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% {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue