From 7150b1a62d8923e4700d2f9c2c34ea33328f7561 Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Tue, 23 Jan 2024 08:16:03 +0800 Subject: [PATCH] Fix overflow on mobile view (#836) --- .github/linters/.stylelintrc.json | 12 +++++++ web/src/components/emails/EmailDraft.tsx | 4 +-- .../components/emails/FullScreenContent.tsx | 2 +- web/src/components/inputs/RichTextEditor.tsx | 2 +- web/src/index.css | 32 +++++++++---------- web/src/pages/EmailList.tsx | 4 +-- web/src/pages/EmailView.tsx | 8 ++--- web/src/pages/Root.tsx | 4 +-- 8 files changed, 40 insertions(+), 28 deletions(-) create mode 100644 .github/linters/.stylelintrc.json diff --git a/.github/linters/.stylelintrc.json b/.github/linters/.stylelintrc.json new file mode 100644 index 0000000000..6f560e9fe8 --- /dev/null +++ b/.github/linters/.stylelintrc.json @@ -0,0 +1,12 @@ +{ + "rules": { + "no-invalid-position-at-import-rule": [ + true, + { + "ignoreAtRules": [ + "tailwind" + ] + } + ] + } +} diff --git a/web/src/components/emails/EmailDraft.tsx b/web/src/components/emails/EmailDraft.tsx index 858375720b..614923154a 100644 --- a/web/src/components/emails/EmailDraft.tsx +++ b/web/src/components/emails/EmailDraft.tsx @@ -34,7 +34,7 @@ export function EmailDraft(props: EmailDraftProps) { return (
{!isReply && ( @@ -129,7 +129,7 @@ export function EmailDraft(props: EmailDraftProps) { ) } -
+
{ diff --git a/web/src/components/emails/FullScreenContent.tsx b/web/src/components/emails/FullScreenContent.tsx index 6b6f4f4384..1ee7488a19 100644 --- a/web/src/components/emails/FullScreenContent.tsx +++ b/web/src/components/emails/FullScreenContent.tsx @@ -108,7 +108,7 @@ export default function FullScreenContent(props: FullScreenContentProps) { } return ( -
+
-
+
-
+
setSelected([])} @@ -224,7 +224,7 @@ export default function EmailList() {
{ if (!emailViewRef.current) return setScrollYPosition(emailViewRef.current.scrollTop) diff --git a/web/src/pages/EmailView.tsx b/web/src/pages/EmailView.tsx index c76028465e..86e10bda85 100644 --- a/web/src/pages/EmailView.tsx +++ b/web/src/pages/EmailView.tsx @@ -187,7 +187,7 @@ export default function EmailView() { return ( <> -
+
{ @@ -212,7 +212,7 @@ export default function EmailView() { +
Loading...
} @@ -220,7 +220,7 @@ export default function EmailView() { {data.type == 'email' && ( {(email: Email) => ( -
+
{email.subject} @@ -278,7 +278,7 @@ export default function EmailView() { /> )} {thread.draftID && !activeReplyEmail && ( -
+
[Draft] diff --git a/web/src/pages/Root.tsx b/web/src/pages/Root.tsx index 7c5244e2fe..fc15e52e64 100644 --- a/web/src/pages/Root.tsx +++ b/web/src/pages/Root.tsx @@ -55,7 +55,7 @@ export default function Root() {
@@ -70,7 +70,7 @@ export default function Root() {
) : ( - + setSidebarOnMobile(true)}>