diff --git a/web/.eslintrc.json b/web/.eslintrc.json index 129c20e5..8f59145e 100644 --- a/web/.eslintrc.json +++ b/web/.eslintrc.json @@ -24,7 +24,8 @@ "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-explicit-any": ["off"], - "react/react-in-jsx-scope": "off" + "react/react-in-jsx-scope": "off", + "react/jsx-no-target-blank": "off" }, "settings": { "react": { diff --git a/web/src/components/AboutSiteDialog.tsx b/web/src/components/AboutSiteDialog.tsx index 9bddc6bf..436eae8b 100644 --- a/web/src/components/AboutSiteDialog.tsx +++ b/web/src/components/AboutSiteDialog.tsx @@ -32,12 +32,7 @@ const AboutSiteDialog: React.FC = ({ destroy }: Props) => {
Powered by - + memos @@ -50,7 +45,6 @@ const AboutSiteDialog: React.FC = ({ destroy }: Props) => { = (props: Props) => { {state.selectedMode === "local-file" && ( <> -
+
diff --git a/web/src/components/CreateStorageServiceDialog.tsx b/web/src/components/CreateStorageServiceDialog.tsx index 196293fa..acf160a7 100644 --- a/web/src/components/CreateStorageServiceDialog.tsx +++ b/web/src/components/CreateStorageServiceDialog.tsx @@ -101,7 +101,6 @@ const CreateStorageServiceDialog: React.FC = (props: Props) => { className="ml-2 text-sm text-blue-600 hover:opacity-80 hover:underline" href="https://usememos.com/docs/storage" target="_blank" - rel="noreferrer" > Learn more diff --git a/web/src/components/GitHubBadge.tsx b/web/src/components/GitHubBadge.tsx index ee434240..78cbbc0e 100644 --- a/web/src/components/GitHubBadge.tsx +++ b/web/src/components/GitHubBadge.tsx @@ -16,7 +16,6 @@ const GitHubBadge = () => { className="h-7 flex flex-row justify-start items-center border dark:border-zinc-600 rounded cursor-pointer hover:opacity-80" href="https://github.com/usememos/memos" target="_blank" - rel="noreferrer" >
diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index 85a8a428..2b664cf0 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -209,7 +209,7 @@ const Memo: React.FC = (props: Props) => { {isVisitorMode && ( - + @{memo.creatorName} )} diff --git a/web/src/components/UpdateVersionBanner.tsx b/web/src/components/UpdateVersionBanner.tsx index ccc00a6f..588201ee 100644 --- a/web/src/components/UpdateVersionBanner.tsx +++ b/web/src/components/UpdateVersionBanner.tsx @@ -48,7 +48,6 @@ const UpdateVersionBanner: React.FC = () => { className="flex flex-row items-center justify-center hover:underline" target="_blank" href="https://github.com/usememos/memos/releases" - rel="noreferrer" > New Update {state.latestVersion} diff --git a/web/src/labs/marked/parser/Link.tsx b/web/src/labs/marked/parser/Link.tsx index 6db26922..10e7c77c 100644 --- a/web/src/labs/marked/parser/Link.tsx +++ b/web/src/labs/marked/parser/Link.tsx @@ -15,7 +15,7 @@ const renderer = (rawStr: string) => { } const parsedContent = marked(matchResult[1], [], [InlineCode, BoldEmphasis, Emphasis, Bold, PlainText]); return ( - + {parsedContent} ); diff --git a/web/src/labs/marked/parser/PlainLink.tsx b/web/src/labs/marked/parser/PlainLink.tsx index d09fb973..17a7f788 100644 --- a/web/src/labs/marked/parser/PlainLink.tsx +++ b/web/src/labs/marked/parser/PlainLink.tsx @@ -9,7 +9,7 @@ const renderer = (rawStr: string) => { } return ( - + {matchResult[1]} ); diff --git a/web/src/less/home.less b/web/src/less/home.less index 8a5eb3a4..d3577da9 100644 --- a/web/src/less/home.less +++ b/web/src/less/home.less @@ -13,7 +13,7 @@ } > .memos-wrapper { - @apply relative flex-grow max-w-2xl w-full h-auto flex flex-col justify-start items-start px-2 sm:pt-4; + @apply relative flex-grow max-w-2xl w-full h-auto flex flex-col justify-start items-start px-4 sm:px-2 sm:pt-4; > .memos-editor-wrapper { @apply w-full h-auto flex flex-col justify-start items-start bg-zinc-100 dark:bg-zinc-800 rounded-lg; diff --git a/web/src/less/memo.less b/web/src/less/memo.less index f1d04400..072d7c96 100644 --- a/web/src/less/memo.less +++ b/web/src/less/memo.less @@ -26,12 +26,15 @@ @apply flex flex-row justify-start items-center; > .time-text { - @apply text-xs text-gray-400; - font-size: 13px; + @apply text-sm text-gray-400; + } + + > .name-text { + @apply ml-1 text-sm text-gray-400 cursor-pointer hover:opacity-80; } > .status-text { - @apply text-xs cursor-pointer ml-2 rounded border px-1; + @apply text-sm cursor-pointer ml-2 rounded border px-1; &.public { @apply border-green-600 text-green-600; @@ -54,7 +57,7 @@ @apply hidden flex-col justify-start items-center absolute top-2 -right-4 flex-nowrap hover:flex p-3; > .more-action-btns-container { - @apply w-auto h-auto p-1 z-1 whitespace-nowrap rounded-lg bg-white dark:bg-zinc-700; + @apply w-auto h-auto p-1 z-1 whitespace-nowrap rounded-lg bg-white dark:bg-zinc-800; box-shadow: 0 0 8px 0 rgb(0 0 0 / 20%); > .btns-container { @@ -106,7 +109,7 @@ } .final-confirm { - color: red + color: red; } } } diff --git a/web/src/pages/Explore.tsx b/web/src/pages/Explore.tsx index f23a7a67..3efd3351 100644 --- a/web/src/pages/Explore.tsx +++ b/web/src/pages/Explore.tsx @@ -105,10 +105,9 @@ const Explore = () => {