mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
nit: added footer with version and github.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -149,6 +149,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="footer-content">
|
||||
<span class="version">v<span id="version-number">...</span></span>
|
||||
<a href="https://github.com/obsqrbtz/goose-highlighter" target="_blank" class="github-link">
|
||||
<i class="fa-brands fa-github"></i>
|
||||
<span>GitHub</span>
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script type="module" src="../dist/popup/popup.js"></script>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user