From f292bd7149c35d0928d798434c08ef0e01a9b735 Mon Sep 17 00:00:00 2001 From: Daniel Dada Date: Wed, 8 Oct 2025 16:32:04 +0300 Subject: [PATCH] nit: added footer with version and github. --- popup/popup.css | 36 ++++++++++++++++++++++++++++++++++++ popup/popup.html | 10 ++++++++++ src/popup/popup.ts | 9 +++++++++ 3 files changed, 55 insertions(+) diff --git a/popup/popup.css b/popup/popup.css index 8a2de53..c6b84bb 100644 --- a/popup/popup.css +++ b/popup/popup.css @@ -612,4 +612,40 @@ body::-webkit-scrollbar-corner, .exception-remove:hover { background: #d00030; +} + +/* Footer Styles */ +.footer { + margin-top: 16px; + padding: 12px 16px; + border-top: 1px solid var(--input-border); + background: var(--section-bg); +} + +.footer-content { + display: flex; + justify-content: space-between; + align-items: center; + font-size: 0.8em; + color: var(--text-color); + opacity: 0.7; +} + +.version { + font-weight: 500; +} + +.github-link { + display: flex; + align-items: center; + gap: 4px; + color: var(--text-color); + text-decoration: none; + opacity: 0.7; + transition: opacity 0.2s ease, color 0.2s ease; +} + +.github-link:hover { + opacity: 1; + color: var(--accent); } \ No newline at end of file diff --git a/popup/popup.html b/popup/popup.html index 6950a99..390a9ba 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -149,6 +149,16 @@ + + diff --git a/src/popup/popup.ts b/src/popup/popup.ts index 45edc5e..3c6894d 100644 --- a/src/popup/popup.ts +++ b/src/popup/popup.ts @@ -15,8 +15,17 @@ function localizePage(): void { }); } +function displayVersion(): void { + const manifest = chrome.runtime.getManifest(); + const versionElement = document.getElementById('version-number'); + if (versionElement && manifest.version) { + versionElement.textContent = manifest.version; + } +} + document.addEventListener('DOMContentLoaded', async () => { localizePage(); + displayVersion(); const controller = new PopupController(); await controller.initialize(); }); \ No newline at end of file