nicolium: focus restoration

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-22 22:56:08 +01:00
parent 67e7128c2c
commit b12dc3e70c

View File

@ -31,11 +31,15 @@ const ComposeButton: React.FC<IComposeButton> = ({ shrink }) => {
const HomeComposeButton: React.FC<IComposeButton> = ({ shrink }) => {
const { openModal } = useModalsActions();
const onOpenCompose = () => {
openModal('COMPOSE');
openModal('COMPOSE', undefined, document.getElementById('sidebar-compose') || undefined);
};
return (
<button className='⁂-sidebar-navigation__compose-button' onClick={onOpenCompose}>
<button
className='⁂-sidebar-navigation__compose-button'
id='sidebar-compose'
onClick={onOpenCompose}
>
{shrink ? (
<Icon src={iconPlus} />
) : (