docs: fixes to navbar and sidebar in mobile (#12379)

* docs: fixes to navbar and sidebar in mobile

* fix height issues
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-05-06 19:11:15 +03:00
1 parent 91173f3052
commit 74e93b3079
4 files changed
+16 -14

No files matched your search

@@ -16,7 +16,8 @@ export const useClickOutside = ({
const checkClickOutside = useCallback(
(e: MouseEvent) => {
if (!elmRef.current?.contains(e.target as Node)) {
const node = e.target as Node
if (!elmRef.current?.contains(node) && node.isConnected) {
onClickOutside(e)
}
},