From 62fa87e774d0f8f8314e17825bad1f2fdc909d35 Mon Sep 17 00:00:00 2001 From: robertu Date: Fri, 7 Feb 2020 16:53:25 +0800 Subject: [PATCH 1/3] Improve styles of CommentContent and code elements --- src/common/styles/bases/defaults.css | 10 ++++++++++ src/components/Notice/NoticeComment.tsx | 7 ++++++- src/views/Follow/FollowFeed/FollowComment/index.tsx | 7 ++++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/common/styles/bases/defaults.css b/src/common/styles/bases/defaults.css index ef1b346f2a..e2f1897b09 100644 --- a/src/common/styles/bases/defaults.css +++ b/src/common/styles/bases/defaults.css @@ -109,3 +109,13 @@ samp, pre { background: var(--color-grey-lighter); } + +code, +kbd, +samp { + padding: var(--spacing-xx-tight); +} + +pre { + padding: var(--spacing-x-tight) var(--spacing-base); +} diff --git a/src/components/Notice/NoticeComment.tsx b/src/components/Notice/NoticeComment.tsx index de1c92c562..5af93c482e 100644 --- a/src/components/Notice/NoticeComment.tsx +++ b/src/components/Notice/NoticeComment.tsx @@ -49,7 +49,12 @@ const NoticeComment = ({ comment }: { comment: NoticeCommentType | null }) => { return (
- + diff --git a/src/views/Follow/FollowFeed/FollowComment/index.tsx b/src/views/Follow/FollowFeed/FollowComment/index.tsx index e20269d0f7..2a6a77cc6e 100644 --- a/src/views/Follow/FollowFeed/FollowComment/index.tsx +++ b/src/views/Follow/FollowFeed/FollowComment/index.tsx @@ -80,7 +80,12 @@ const FollowComment = ({
- + From 6891c7e6df9ace1880d0e74dc2d3dc7102ad447a Mon Sep 17 00:00:00 2001 From: robertu Date: Fri, 7 Feb 2020 18:02:20 +0800 Subject: [PATCH 2/3] fix missing avatar of --- src/components/UserDigest/Rich/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UserDigest/Rich/index.tsx b/src/components/UserDigest/Rich/index.tsx index ea316a0988..6ff270d2ef 100644 --- a/src/components/UserDigest/Rich/index.tsx +++ b/src/components/UserDigest/Rich/index.tsx @@ -111,7 +111,7 @@ const Rich = ({
- + {avatarBadge && {avatarBadge}} From 96bd6469f859033506cf18c05c849c209259598b Mon Sep 17 00:00:00 2001 From: robertu Date: Fri, 7 Feb 2020 18:03:52 +0800 Subject: [PATCH 3/3] Add "like.co" to EMAIL_DOMAIN_WHITELIST --- src/common/utils/validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/validator.ts b/src/common/utils/validator.ts index 7f0dfbdcfe..f4df4f5bd9 100644 --- a/src/common/utils/validator.ts +++ b/src/common/utils/validator.ts @@ -9,7 +9,7 @@ export interface ValidEmailOptions { allowPlusSign: boolean } -const EMAIL_DOMAIN_WHITELIST = ['matters.news'] +const EMAIL_DOMAIN_WHITELIST = ['matters.news', 'like.co'] export const isValidEmail = (str: string, options: ValidEmailOptions) => { const { allowPlusSign } = options