From 1514c6470e095526f7ffc42fcdc5ae7272a78875 Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Mon, 23 Jun 2025 16:12:52 +1000 Subject: [PATCH] Add cursor pointer to X button and click-outside-to-dismiss - Add cursor-pointer class to modal X button - Add onClick handler to backdrop overlay to close modal - Add stopPropagation to modal content to prevent backdrop clicks - Now modal can be dismissed by clicking outside or using X button --- examples/chat-ui/src/components/McpServerModal.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/chat-ui/src/components/McpServerModal.tsx b/examples/chat-ui/src/components/McpServerModal.tsx index d649d64..a70118b 100644 --- a/examples/chat-ui/src/components/McpServerModal.tsx +++ b/examples/chat-ui/src/components/McpServerModal.tsx @@ -187,13 +187,19 @@ const McpServerModal: React.FC = ({ return ( <> -
-
+
+
e.stopPropagation()} + >

MCP Servers