fix: remove focus outline artifacts

This commit is contained in:
Baptiste Grob
2021-04-09 14:22:33 +02:00
parent e12b9ecac8
commit 369b748b97
5 changed files with 87 additions and 16 deletions

View File

@@ -66,8 +66,7 @@ function SearchOptions({ appState }: Props) {
open={open}
onChange={() => {
const { height } = buttonRef.current.getBoundingClientRect();
const extraVerticalBreathingRoom = 4;
setOptionsPanelTop(height + extraVerticalBreathingRoom);
setOptionsPanelTop(height);
setOpen((prevOpen) => !prevOpen);
}}
>