From d043617be32a805fa71206f62dacb1baa5be47b3 Mon Sep 17 00:00:00 2001 From: bdebon Date: Sat, 24 Apr 2021 16:36:10 +0200 Subject: [PATCH] Adding border radius on popup and closing the popup when the upload is success --- content.css | 3 ++- content.js | 4 +++- popup.html | 4 ++-- popup.js | 13 ++++++++++++- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/content.css b/content.css index c001671..7ed74a3 100644 --- a/content.css +++ b/content.css @@ -20,5 +20,6 @@ margin: 0; padding: 0; background-color: white; + border-radius: 16px; box-shadow: 0 1px 1px rgb(0 0 0 / 15%), 0 2px 2px rgb(0 0 0 / 15%), 0 4px 4px rgb(0 0 0 / 15%), 0 8px 8px rgb(0 0 0 / 15%); -} \ No newline at end of file +} diff --git a/content.js b/content.js index ec116aa..13d4d4a 100644 --- a/content.js +++ b/content.js @@ -6,6 +6,8 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { if (request.type == "popup") { //console.log(request); showPopup(); + } else if (request.type === 'close_popup') { + hidePopup(); } return true; }); @@ -42,4 +44,4 @@ function hidePopup() { // Clean up references: overlay = null; frame = null; -} \ No newline at end of file +} diff --git a/popup.html b/popup.html index 777bb85..1fa8855 100644 --- a/popup.html +++ b/popup.html @@ -78,7 +78,7 @@
@@ -93,7 +93,7 @@