From 70331e19f1a417b6e6307ed9319b95c339a1edd3 Mon Sep 17 00:00:00 2001 From: void-57 Date: Tue, 2 Sep 2025 02:23:40 +0530 Subject: [PATCH] feat: implement IndexedDB for saving and managing searched addresses --- css/style.css | 17 +- index.html | 1 + scripts/balance.js | 34 +++ scripts/saveSearchedAddress.js | 394 +++++++++++++++++++++++++++++++++ 4 files changed, 443 insertions(+), 3 deletions(-) create mode 100644 scripts/saveSearchedAddress.js diff --git a/css/style.css b/css/style.css index 3f9b0ce..0c91d98 100644 --- a/css/style.css +++ b/css/style.css @@ -808,6 +808,17 @@ body { color: white; } +.toggle-key-type { + font-size: 0.75rem; + font-weight: 600; + color: var(--text-secondary); + margin-bottom: 0.5rem; + background: rgba(59, 130, 246, 0.1); + padding: 0.25rem 0.5rem; + border-radius: 4px; + display: inline-block; +} + .btn-toggle-address:hover:not(.active) { background: var(--background-color); color: var(--text-primary); @@ -2684,7 +2695,7 @@ sm-popup::part(popup) { .balance-amount { font-size: 1.5rem; font-weight: 700; - color: white; + color: var(--primary-color); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } @@ -4280,7 +4291,7 @@ sm-popup::part(popup) { /* ===== SHARE BUTTON STYLES ===== */ .share-btn { background: var(--accent-color); - color: white; + color: var(--primary-color); border: none; border-radius: 50%; width: 40px; @@ -5028,6 +5039,6 @@ sm-popup::part(popup) { .detail-link { text-decoration: none; - color: white; + color: var(--text-primary); cursor: pointer; } diff --git a/index.html b/index.html index 5a3914a..fd0f947 100644 --- a/index.html +++ b/index.html @@ -620,6 +620,7 @@ +