From bf699037923a0fd1b355fcee6164e43972d5a7bf Mon Sep 17 00:00:00 2001 From: adamhaley Date: Tue, 19 Aug 2025 19:49:36 -0700 Subject: [PATCH] adding close button to oauth window for situations where it doesnt auto-close --- oauth_handler.py | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/oauth_handler.py b/oauth_handler.py index 11e435d..e75fc07 100644 --- a/oauth_handler.py +++ b/oauth_handler.py @@ -557,6 +557,20 @@ async def handle_oauth_callback(request): color: #6b7280; line-height: 1.5; }} + .close-button {{ + background: #667eea; + color: white; + border: none; + padding: 12px 24px; + border-radius: 8px; + font-size: 16px; + cursor: pointer; + margin-top: 20px; + transition: background 0.2s; + }} + .close-button:hover {{ + background: #5a67d8; + }} .loading {{ display: inline-block; width: 20px; @@ -575,10 +589,10 @@ async def handle_oauth_callback(request):
-
✅
+
✓

Authorization Successful!

{message}

-

This window will close automatically

+
""", content_type='text/html')