diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 3f230dc2..4d903442 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -231,6 +231,5 @@ "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", - "You can't vote twice": "You cannot vote twice" + "New only": "New only" } diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index 61f42e27..187b38d4 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -248,5 +248,8 @@ "user already exist": "пользователь уже существует", "view": "просмотр", "zine": "журнал", - "By time": "По порядку" + "By time": "По порядку", + "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 ( <>