Merge branch 'dev' into hotfix/all-authors-ssr

This commit is contained in:
Tony 2024-03-02 10:32:59 +03:00 committed by GitHub
commit 9a7c973bb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,8 @@
@include font-size(1.2rem);
color: var(--secondary-color);
align-self: center;
// align-self: center;
display: flex;
align-items: flex-start;
justify-content: flex-start;

View File

@ -14,6 +14,7 @@ import { resetSortedArticles, useArticlesStore } from '../../../stores/zine/arti
import { useTopAuthorsStore } from '../../../stores/zine/topAuthors'
import { useTopicsStore } from '../../../stores/zine/topics'
import { getImageUrl } from '../../../utils/getImageUrl'
import { byCreated } from '../../../utils/sortby'
import { CommentDate } from '../../Article/CommentDate'
import { getShareUrl } from '../../Article/SharePopup'
import { AuthorBadge } from '../../Author/AuthorBadge'
@ -134,7 +135,7 @@ export const FeedView = (props: Props) => {
const loadTopComments = async () => {
const comments = await loadReactionsBy({ by: { comment: true }, limit: 50 })
setTopComments(comments)
setTopComments(comments.sort(byCreated).reverse())
}
onMount(() => {