From eca5332d81557e7dc377d6772faf99c0a30b4fe5 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 13 Feb 2026 15:26:19 +0200 Subject: [PATCH] Improve full-screen mode with modal popup and backdrop --- .../components/tool-ui/update-notion-page.tsx | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/surfsense_web/components/tool-ui/update-notion-page.tsx b/surfsense_web/components/tool-ui/update-notion-page.tsx index 5bf5a45a9..383dc3066 100644 --- a/surfsense_web/components/tool-ui/update-notion-page.tsx +++ b/surfsense_web/components/tool-ui/update-notion-page.tsx @@ -117,21 +117,28 @@ function ApprovalCard({ const account = interruptData.context?.account; const currentTitle = interruptData.context?.current_title; - // Title is not editable, so it's always valid - const isTitleValid = true; - const reviewConfig = interruptData.review_configs[0]; const allowedDecisions = reviewConfig?.allowed_decisions ?? ["approve", "reject"]; const canEdit = allowedDecisions.includes("edit"); return ( -
+ <> + {/* Backdrop for full-screen mode */} + {isFullScreen && ( +
setIsFullScreen(false)} /> + )} + +
+ ); }