From fa93d0fd6e87c81a9caa59ca1cacca8a727cafd4 Mon Sep 17 00:00:00 2001 From: boojack Date: Wed, 27 Jul 2022 20:02:00 +0800 Subject: [PATCH] chore: update visibility selector style --- web/src/components/Memo.tsx | 5 +---- web/src/components/MemoCardDialog.tsx | 18 ++++++++++++------ web/src/less/memo-card-dialog.less | 13 ++++++++++--- web/src/less/memo.less | 10 +++++++++- 4 files changed, 32 insertions(+), 14 deletions(-) diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index 56fdd98c..69d4a3e5 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -172,11 +172,8 @@ const Memo: React.FC = (props: Props) => {
{createdAtStr} - - PINNED - - {memo.visibility} + {memo.visibility}
diff --git a/web/src/components/MemoCardDialog.tsx b/web/src/components/MemoCardDialog.tsx index 962d6e03..2c197b1e 100644 --- a/web/src/components/MemoCardDialog.tsx +++ b/web/src/components/MemoCardDialog.tsx @@ -126,21 +126,27 @@ const MemoCardDialog: React.FC = (props: Props) => { return ( <> + +
+ + handleVisibilitySelectorChange(value as Visibility)} + /> +
+

{utils.getDateTimeString(memo.createdTs)}

<> - handleVisibilitySelectorChange(value as Visibility)} - /> + /