From 780f59f5174a3827621406e8c37e8f2f89251a51 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 1 Mar 2024 16:04:28 +0300 Subject: [PATCH] feed-comments-order-fix --- .../CommentDate/CommentDate.module.scss | 3 +- src/components/Article/CommentsTree.tsx | 26 +++++++-------- src/components/Views/Author/Author.tsx | 2 +- src/components/Views/Feed/Feed.tsx | 32 ++++++------------- 4 files changed, 24 insertions(+), 39 deletions(-) diff --git a/src/components/Article/CommentDate/CommentDate.module.scss b/src/components/Article/CommentDate/CommentDate.module.scss index 20410cce..b492cb84 100644 --- a/src/components/Article/CommentDate/CommentDate.module.scss +++ b/src/components/Article/CommentDate/CommentDate.module.scss @@ -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; diff --git a/src/components/Article/CommentsTree.tsx b/src/components/Article/CommentsTree.tsx index cf28fcfd..60054831 100644 --- a/src/components/Article/CommentsTree.tsx +++ b/src/components/Article/CommentsTree.tsx @@ -1,15 +1,15 @@ -import {clsx} from 'clsx' -import {createMemo, createSignal, For, lazy, onMount, Show} from 'solid-js' +import { clsx } from 'clsx' +import { For, Show, createMemo, createSignal, lazy, onMount } from 'solid-js' -import {useLocalize} from '../../context/localize' -import {useReactions} from '../../context/reactions' -import {useSession} from '../../context/session' -import {Author, Reaction, ReactionKind, ReactionSort} from '../../graphql/schema/core.gen' -import {byCreated, byStat} from '../../utils/sortby' -import {Button} from '../_shared/Button' -import {ShowIfAuthenticated} from '../_shared/ShowIfAuthenticated' +import { useLocalize } from '../../context/localize' +import { useReactions } from '../../context/reactions' +import { useSession } from '../../context/session' +import { Author, Reaction, ReactionKind, ReactionSort } from '../../graphql/schema/core.gen' +import { byCreated, byStat } from '../../utils/sortby' +import { Button } from '../_shared/Button' +import { ShowIfAuthenticated } from '../_shared/ShowIfAuthenticated' -import {Comment} from './Comment' +import { Comment } from './Comment' import styles from './Article.module.scss' @@ -95,11 +95,7 @@ export const CommentsTree = (props: Props) => {