mirror of https://gitee.com/answerdev/answer.git
Merge pull request #258 from answerdev/feat/1.0.7/ui
fix: set scorll postion for tag detail
This commit is contained in:
commit
f33f14a2e3
|
@ -31,6 +31,11 @@ const Questions: FC = () => {
|
|||
object_id: tagInfo.tag_id,
|
||||
});
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
}, [curTagName]);
|
||||
|
||||
useEffect(() => {
|
||||
if (tagResp) {
|
||||
const info = { ...tagResp };
|
||||
|
|
|
@ -111,9 +111,9 @@ 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 reset-p">
|
||||
<div className="fs-14 flex-fill text-break text-wrap text-truncate-3 reset-p mb-3">
|
||||
{htmlToReact(tag.parsed_text)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="d-flex align-items-center">
|
||||
<Button
|
||||
className={`me-2 ${tag.is_follower ? 'active' : ''}`}
|
||||
|
|
Loading…
Reference in New Issue