From 18e7bdd8c568a52cf8f612b21ed704c6fd1f40d2 Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 9 Jul 2023 11:29:33 +0800 Subject: [PATCH] fix: ui improve Signed-off-by: Innei --- src/components/widgets/note/NoteActionAside.tsx | 1 + src/components/widgets/post/PostActionAside.tsx | 1 + .../widgets/shared/WithArticleSelectionAction.tsx | 9 +++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/note/NoteActionAside.tsx b/src/components/widgets/note/NoteActionAside.tsx index 9bb537fd92..dbd792ccb2 100644 --- a/src/components/widgets/note/NoteActionAside.tsx +++ b/src/components/widgets/note/NoteActionAside.tsx @@ -153,6 +153,7 @@ const ShareButton = () => { else { present({ title: '分享此内容', + clickOutsideToDismiss: true, content: () => , }) } diff --git a/src/components/widgets/post/PostActionAside.tsx b/src/components/widgets/post/PostActionAside.tsx index 4c8270b711..728466eea0 100644 --- a/src/components/widgets/post/PostActionAside.tsx +++ b/src/components/widgets/post/PostActionAside.tsx @@ -150,6 +150,7 @@ const ShareButton = () => { else { present({ title: '分享此内容', + clickOutsideToDismiss: true, content: () => , }) } diff --git a/src/components/widgets/shared/WithArticleSelectionAction.tsx b/src/components/widgets/shared/WithArticleSelectionAction.tsx index 34e33bdb17..bd2e53e77b 100644 --- a/src/components/widgets/shared/WithArticleSelectionAction.tsx +++ b/src/components/widgets/shared/WithArticleSelectionAction.tsx @@ -1,4 +1,5 @@ import { useEffect, useRef, useState } from 'react' +import clsx from 'clsx' import { AnimatePresence, m } from 'framer-motion' import { useIsMobile } from '~/atoms' @@ -68,8 +69,10 @@ export const WithArticleSelectionAction: Component<{ {show && ( { present({ title: '评论',