From baf0ed1447a12b3e11350e9a9c616971d788b531 Mon Sep 17 00:00:00 2001 From: thislight Date: Sat, 28 Sep 2024 12:43:12 +0800 Subject: [PATCH] ReplyEditor: only show toolbar when active --- src/timelines/ReplyEditor.tsx | 73 +++++++++++++++++-------------- src/timelines/TootBottomSheet.tsx | 1 + 2 files changed, 40 insertions(+), 34 deletions(-) diff --git a/src/timelines/ReplyEditor.tsx b/src/timelines/ReplyEditor.tsx index 9b9ab74..0f4bcff 100644 --- a/src/timelines/ReplyEditor.tsx +++ b/src/timelines/ReplyEditor.tsx @@ -229,51 +229,56 @@ const ReplyEditor: Component<{ onClick={(e) => inputRef.focus()} >
- + - +
-
- - -
+ +
+ + +
- setPermPicker(false)} - visibility={visibility()} - onVisibilityChange={setVisibility} - /> + setPermPicker(false)} + visibility={visibility()} + onVisibilityChange={setVisibility} + /> - setLangPickerOpen(false)} - code={language()} - onCodeChange={setLanguage} - /> + setLangPickerOpen(false)} + code={language()} + onCodeChange={setLanguage} + /> +
); }; diff --git a/src/timelines/TootBottomSheet.tsx b/src/timelines/TootBottomSheet.tsx index 4e86928..87d1bd1 100644 --- a/src/timelines/TootBottomSheet.tsx +++ b/src/timelines/TootBottomSheet.tsx @@ -270,6 +270,7 @@ const TootBottomSheet: Component = (props) => { )} +
); };