[146] Astro fixies
This commit is contained in:
parent
58a2091e0d
commit
57d6ac14db
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -249,5 +249,7 @@
|
|||
"view": "просмотр",
|
||||
"zine": "журнал",
|
||||
"By time": "По порядку",
|
||||
"New only": "Только новые"
|
||||
"New only": "Только новые",
|
||||
"Bookmarks": "Закладки",
|
||||
"Logout": "Выход"
|
||||
}
|
||||
|
|
|
@ -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 (
|
||||
<>
|
||||
<Title>{props.article.title}</Title>
|
||||
|
@ -195,9 +203,9 @@ export const FullArticle = (props: ArticleProps) => {
|
|||
</div>
|
||||
</Show>
|
||||
|
||||
<div class={styles.shoutStatsItem}>
|
||||
<div class={styles.shoutStatsItem} onClick={() => scrollToComments()}>
|
||||
<Icon name="comment" class={styles.icon} />
|
||||
{props.article.stat?.commented || ''}
|
||||
{/*{props.article.stat?.commented || ''}*/}
|
||||
</div>
|
||||
|
||||
<div class={styles.shoutStatsItem}>
|
||||
|
@ -259,6 +267,7 @@ export const FullArticle = (props: ArticleProps) => {
|
|||
)}
|
||||
</For>
|
||||
</div>
|
||||
<div ref={commentsRef}>
|
||||
<Show when={isReactionsLoaded()}>
|
||||
<CommentsTree
|
||||
shoutId={props.article.id}
|
||||
|
@ -268,6 +277,7 @@ export const FullArticle = (props: ArticleProps) => {
|
|||
</Show>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ export default gql`
|
|||
viewed
|
||||
reacted
|
||||
rating
|
||||
commented
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -140,7 +140,9 @@ export const ProfileSettingsPage = () => {
|
|||
value={form.slug}
|
||||
class="nolabel"
|
||||
/>
|
||||
<Show when={slugError()}>
|
||||
<p class="form-message form-message--error">{t(`${slugError()}`)}</p>
|
||||
</Show>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user