diff --git a/ui/src/pages/Tags/Detail/index.tsx b/ui/src/pages/Tags/Detail/index.tsx index a703f9a4..c58db892 100644 --- a/ui/src/pages/Tags/Detail/index.tsx +++ b/ui/src/pages/Tags/Detail/index.tsx @@ -31,6 +31,11 @@ const Questions: FC = () => { object_id: tagInfo.tag_id, }); }; + + useEffect(() => { + window.scrollTo(0, 0); + }, [curTagName]); + useEffect(() => { if (tagResp) { const info = { ...tagResp }; diff --git a/ui/src/pages/Tags/index.tsx b/ui/src/pages/Tags/index.tsx index 2884be33..57663e77 100644 --- a/ui/src/pages/Tags/index.tsx +++ b/ui/src/pages/Tags/index.tsx @@ -111,9 +111,9 @@ const Tags = () => { -

+

{htmlToReact(tag.parsed_text)} -

+