From b12dc3e70c7689cca425fc3ad8eac855e69452e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 22 Mar 2026 22:56:08 +0100 Subject: [PATCH] nicolium: focus restoration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../nicolium/src/components/navigation/compose-button.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/nicolium/src/components/navigation/compose-button.tsx b/packages/nicolium/src/components/navigation/compose-button.tsx index b2613a6f0..206db2ba5 100644 --- a/packages/nicolium/src/components/navigation/compose-button.tsx +++ b/packages/nicolium/src/components/navigation/compose-button.tsx @@ -31,11 +31,15 @@ const ComposeButton: React.FC = ({ shrink }) => { const HomeComposeButton: React.FC = ({ shrink }) => { const { openModal } = useModalsActions(); const onOpenCompose = () => { - openModal('COMPOSE'); + openModal('COMPOSE', undefined, document.getElementById('sidebar-compose') || undefined); }; return ( -