diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-02-12 22:48:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 22:48:29 +0000 |
commit | b37199a5a02e9957d3f564035004a39190c91a62 (patch) | |
tree | c6768f0d60b097898760d367847c522a3587861b /src/components/Layout | |
parent | 1a3ecdf6ecb411f7bf0e1a360f0c57d3b3d65f48 (diff) | |
download | voidsky-b37199a5a02e9957d3f564035004a39190c91a62.tar.zst |
Improved search page (#7590)
* search input revamp * fix web * rm "useThemeNew" * fix overlap during transition * animate header properly * reduce gap * animate cancel button in * don't move search bar when focused * remove cancel button animation
Diffstat (limited to 'src/components/Layout')
-rw-r--r-- | src/components/Layout/Header/index.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Layout/Header/index.tsx b/src/components/Layout/Header/index.tsx index d38cf9d94..3af0215c5 100644 --- a/src/components/Layout/Header/index.tsx +++ b/src/components/Layout/Header/index.tsx @@ -1,5 +1,5 @@ import {createContext, useCallback, useContext} from 'react' -import {GestureResponderEvent, View} from 'react-native' +import {GestureResponderEvent, Keyboard, View} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' @@ -140,6 +140,7 @@ export function MenuButton() { const {gtMobile} = useBreakpoints() const onPress = useCallback(() => { + Keyboard.dismiss() setDrawerOpen(true) }, [setDrawerOpen]) |