Skip to content

Commit

Permalink
Merge pull request #4905 from thematters/develop
Browse files Browse the repository at this point in the history
Release: v5.6.4
  • Loading branch information
gitwoz authored Oct 21, 2024
2 parents 4344cad + d8a0c49 commit ceaf97f
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matters-web",
"version": "5.6.3",
"version": "5.6.4",
"description": "codebase of Matters' website",
"author": "Matters <[email protected]>",
"engines": {
Expand Down
12 changes: 8 additions & 4 deletions src/common/styles/utils/content.article.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/common/styles/variables/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
'Microsoft JhengHei', 'WenQuanYi Micro Hei', sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji';
--font-serif-tc: 'Songti TC', 'Songti SC', 'NSimSun', 'SimSun', serif,
'Apple Color Emoji', 'Segoe UI Emoji';
var(--font-sans-sc), 'Apple Color Emoji', 'Segoe UI Emoji';
--font-serif-sc: 'Songti SC', 'Songti TC', 'NSimSun', 'SimSun', serif,
'Apple Color Emoji', 'Segoe UI Emoji';
var(--font-sans-sc), 'Apple Color Emoji', 'Segoe UI Emoji';
--font-mono: menlo, 'SFMono-Regular', consolas, monaco, monospace,
'Apple Color Emoji', 'Segoe UI Emoji';
var(--font-sans-sc), 'Apple Color Emoji', 'Segoe UI Emoji';

/* Type Scale */
--text12: 0.75rem; /* 12px */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import classNames from 'classnames'
import _uniqBy from 'lodash/uniqBy'
import { useContext, useEffect } from 'react'

Expand All @@ -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<
Expand Down Expand Up @@ -152,8 +154,13 @@ export const DescendantComments = ({

return (
<>
{result.map((node) => (
<li key={node.id}>
{result.map((node, index) => (
<li
key={node.id}
className={classNames({
[styles.lastDescendant]: index === result.length - 1,
})}
>
<CommentFeed
comment={node}
pinnedComment={pinnedComment}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
margin-top: var(--sp8);
}
}

.lastDescendant {
margin-bottom: var(--sp16);
}
10 changes: 8 additions & 2 deletions src/components/Comment/ThreadComment/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import classNames from 'classnames'
import { useEffect, useState } from 'react'

import { filterComments } from '~/common/utils'
Expand Down Expand Up @@ -69,8 +70,13 @@ export const CommentThreadComment = ({

{descendants.length > 0 && (
<ul className={styles.descendants}>
{descendants.map((descendantComment) => (
<li key={descendantComment.id}>
{descendants.map((descendantComment, index) => (
<li
key={descendantComment.id}
className={classNames({
[styles.lastDescendant]: index === descendants.length - 1,
})}
>
<CommentFeed
comment={descendantComment}
pinnedComment={pinnedComment}
Expand Down
4 changes: 4 additions & 0 deletions src/components/Comment/ThreadComment/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
transition-property: background-color;
}
}

.lastDescendant {
margin-bottom: var(--sp16);
}
4 changes: 2 additions & 2 deletions src/views/CampaignDetail/ArticleFeeds/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ArticleFeedsTabs = ({
})}
/>

<SquareTabs.Tab
{/* <SquareTabs.Tab
selected={feedType === FEED_TYPE_FEATURED}
onClick={() => {
setFeedType(FEED_TYPE_FEATURED)
Expand All @@ -74,7 +74,7 @@ const ArticleFeedsTabs = ({
defaultMessage: 'Featured',
id: 'CnPG8j',
})}
/>
/> */}

{[...stages].reverse().map((stage) =>
shouldShowTab(stage.period?.start) ? (
Expand Down

0 comments on commit ceaf97f

Please sign in to comment.