From a2f8abcb7b26e0b0e9c6d563e369c74daaecb894 Mon Sep 17 00:00:00 2001 From: qcrao Date: Tue, 21 Jan 2025 16:47:57 +0800 Subject: [PATCH] fix delete fail and add mynav ad --- bulkDeleteConversations.js | 2 +- popup.css | 120 +++++++++++++++++++++++++++++-------- popup.html | 37 ++++++------ popup.js | 14 ++--- 4 files changed, 123 insertions(+), 50 deletions(-) diff --git a/bulkDeleteConversations.js b/bulkDeleteConversations.js index 0e9d29c..f4cb21e 100644 --- a/bulkDeleteConversations.js +++ b/bulkDeleteConversations.js @@ -64,7 +64,7 @@ async function deleteConversation(checkbox) { // Look for hoverable element within the conversation element const hoverableDiv = conversationElement.querySelector( - "div.can-hover\\:group-hover\\:flex" + "div.can-hover\\:group-hover\\:visible" ); if (!hoverableDiv) { console.log("Skipping conversation - no hoverable element found"); diff --git a/popup.css b/popup.css index 56f1819..324c212 100644 --- a/popup.css +++ b/popup.css @@ -1,6 +1,6 @@ body { width: 280px; - padding: 20px; + padding: 20px 20px 12px; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; display: flex; flex-direction: column; @@ -131,46 +131,118 @@ button#bulk-archive { } .footer { - margin-top: 20px; + margin-top: 12px; width: 100%; - font-size: 12px; - text-align: center; + padding: 12px 0 0; border-top: 2px solid #e1e4e8; - padding-top: 15px; display: flex; justify-content: center; - gap: 20px; -} - -#sponsorLink { - display: inline-flex; align-items: center; - padding: 8px 15px; - background-color: #34495e; - border-radius: 5px; - color: #fff; + gap: 8px; +} + +.footer-button { text-decoration: none; - cursor: pointer; - transition: all 0.3s ease; - font-weight: 500; + border-radius: 8px; + transition: all 0.2s ease; + padding: 8px 12px; + flex-shrink: 0; } -#sponsorLink:hover { - background-color: #2c3e50; +.footer-button:hover { transform: translateY(-2px); - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } -#sponsorLink .icon-text { +.footer-button .button-content { display: flex; align-items: center; gap: 8px; } +/* Sponsor button styles */ +#sponsorLink { + background: #2d333b; + color: white; + min-width: auto; + padding: 8px; +} + +#sponsorLink .button-content { + display: flex; + align-items: center; + justify-content: center; +} + +#sponsorLink span { + display: none; +} + +#sponsorLink svg { + width: 20px; + height: 20px; + fill: #ff69b4; + animation: pulse 2s infinite; + margin: 0; +} + #sponsorLink:hover { - background-color: #993366; - transform: translateY(-2px); - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); + background: linear-gradient(to right, #373e47, #545d68); +} + +/* MyNav ad styles */ +.nav-ad { + background: #5046e5; + color: white; + flex-grow: 0; + width: auto; +} + +.nav-ad .button-content { + flex-direction: row; + align-items: center; + justify-content: center; + position: relative; + gap: 8px; + width: 100%; +} + +.nav-ad .title { + font-size: 16px; + font-weight: 600; +} + +.nav-ad .description { + display: none; +} + +.nav-ad .emoji { + position: static; + transform: none; + font-size: 16px; +} + +.nav-ad:hover { + background: #4038cc; +} + +.footer-separator { + height: 24px; + width: 1px; + background-color: #e5e7eb; + margin: 0 2px; +} + +@keyframes pulse { + 0% { + transform: scale(1); + } + 50% { + transform: scale(1.1); + } + 100% { + transform: scale(1); + } } .modal { diff --git a/popup.html b/popup.html index 414afd5..c84b12c 100644 --- a/popup.html +++ b/popup.html @@ -33,25 +33,26 @@