From 814afc3e6d811daace92b15064d199bdcd6f16a5 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Sat, 20 Jan 2024 20:46:42 +0530 Subject: [PATCH] chore: fix mobile toolbar conditional [skip e2e] --- .../SuperEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx b/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx index 6b97c2067..544293026 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx @@ -504,7 +504,7 @@ const ToolbarPlugin = () => { const [isFocusInEditor, setIsFocusInEditor] = useState(false) const [isFocusInToolbar, setIsFocusInToolbar] = useState(false) - const canShowToolbarOnMobile = true + const canShowToolbarOnMobile = isFocusInEditor || isFocusInToolbar const canShowAllItems = isMobile || isToolbarFixedToTop useEffect(() => {