From c63c4eb097025e136919764ff9f07ff8d44f2479 Mon Sep 17 00:00:00 2001 From: robertu7 <4065233+robertu7@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:14:31 +0800 Subject: [PATCH 1/5] fix(editor): remove unused spacing of editor title --- src/common/styles/utils/content.article.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/common/styles/utils/content.article.css b/src/common/styles/utils/content.article.css index 1fed964b68..3850b136cc 100644 --- a/src/common/styles/utils/content.article.css +++ b/src/common/styles/utils/content.article.css @@ -422,11 +422,15 @@ } } -.editor-title textarea { - margin: 0 0 var(--sp16); +.editor-title { + margin-top: 0 !important; - @media (--sm-up) { - margin: var(--sp16) 0; + & textarea { + margin: 0 0 var(--sp16); + + @media (--sm-up) { + margin: var(--sp16) 0; + } } } From f1bd26e6fbba94b3a00a641b5f40c95a54586d9b Mon Sep 17 00:00:00 2001 From: robertu7 <4065233+robertu7@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:39:10 +0800 Subject: [PATCH 2/5] feat(comment): extra spacing for last descendant comment --- .../ThreadComment/DescendantComments/index.tsx | 11 +++++++++-- .../DescendantComments/styles.module.css | 4 ++++ src/components/Comment/ThreadComment/index.tsx | 10 ++++++++-- .../Comment/ThreadComment/styles.module.css | 4 ++++ 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/components/Comment/ThreadComment/DescendantComments/index.tsx b/src/components/Comment/ThreadComment/DescendantComments/index.tsx index 9ced369c2c..f909214a10 100644 --- a/src/components/Comment/ThreadComment/DescendantComments/index.tsx +++ b/src/components/Comment/ThreadComment/DescendantComments/index.tsx @@ -1,3 +1,4 @@ +import classNames from 'classnames' import _uniqBy from 'lodash/uniqBy' import { useContext, useEffect } from 'react' @@ -20,6 +21,7 @@ import { DESCENDANT_COMMENTS_COMMENT_PRIVATE, DESCENDANT_COMMENTS_COMMENT_PUBLIC, } from '../gql' +import styles from './styles.module.css' type DescendantCommentPublic = NonNullable< NonNullable< @@ -152,8 +154,13 @@ export const DescendantComments = ({ return ( <> - {result.map((node) => ( -
  • + {result.map((node, index) => ( +
  • 0 && (