From 8b3bd97dd4a2d7d3b97163528c42ab088fa4986a Mon Sep 17 00:00:00 2001 From: mrjvs Date: Fri, 20 Oct 2023 16:59:07 +0200 Subject: [PATCH] mobile close button for popouts --- src/components/overlays/OverlayRouter.tsx | 6 +++++- .../positions/OverlayMobilePosition.tsx | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/components/overlays/OverlayRouter.tsx b/src/components/overlays/OverlayRouter.tsx index ca6ff40a..4930df9d 100644 --- a/src/components/overlays/OverlayRouter.tsx +++ b/src/components/overlays/OverlayRouter.tsx @@ -72,7 +72,11 @@ function RouterBase(props: { id: string; children: ReactNode }) { }, [routeMeta?.height, routeMeta?.width, isMobile, api]); return ( - + {props.children} + + {/* Close button */} + + {/* Gradient to hide the progress */} +
); }