diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 4d903442..a52421fd 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -231,5 +231,7 @@ "Your name will appear on your profile page and as your signature in publications, comments and responses.": "Your name will appear on your profile page and as your signature in publications, comments and responses", "zine": "zine", "By time": "By time", - "New only": "New only" + "New only": "New only", + "Bookmarks": "Bookmarks", + "Logout": "Logout" } diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index edbae3ef..187b38d4 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -249,5 +249,7 @@ "view": "просмотр", "zine": "журнал", "By time": "По порядку", - "New only": "Только новые" + "New only": "Только новые", + "Bookmarks": "Закладки", + "Logout": "Выход" } diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 2a39073f..59963839 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -105,6 +105,14 @@ export const FullArticle = (props: ArticleProps) => { actions: { loadReactionsBy } } = useReactions() + let commentsRef: HTMLDivElement | undefined + const scrollToComments = () => { + if (!isReactionsLoaded()) { + return + } + commentsRef.scrollIntoView({ behavior: 'smooth' }) + } + return ( <>