From e85672dd756f3868ac1939fea240cee93b77bda6 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 11 Jul 2024 09:39:43 +0800 Subject: [PATCH] Add an overlay when the left menu is opened in slide out mode --- .../components/templates/NavigationLayout.tsx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/web/components/templates/NavigationLayout.tsx b/packages/web/components/templates/NavigationLayout.tsx index c6364fe19..e8e97630d 100644 --- a/packages/web/components/templates/NavigationLayout.tsx +++ b/packages/web/components/templates/NavigationLayout.tsx @@ -143,6 +143,26 @@ export function NavigationLayout(props: NavigationLayoutProps): JSX.Element { }, }} > + { + props.setShowNavigationMenu(false) + event.stopPropagation() + }} + > )} {props.children}