Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ <h3 class="text-title">模型设置</h3>
保存设置
</button>
</div>
<p id="versionInfo"></p>
</div>
</section>
<section id="history" class="tab-panel" hidden role="tabpanel" aria-labelledby="history-tab">
Expand Down
3 changes: 3 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,5 +526,8 @@ document.addEventListener('DOMContentLoaded', () => {
if (newChatBtn) newChatBtn.addEventListener('click', startNewChatSession);
if (clearHistoryBtn) clearHistoryBtn.addEventListener('click', clearHistory);

const versionInfo = document.getElementById('versionInfo');
if (versionInfo) versionInfo.textContent = `AI-based Translator v${chrome.runtime.getManifest().version}`;

ensureDefaultConfig();
});
7 changes: 7 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,11 @@ body {
/* Elevation */
.elevation-2 {
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

#versionInfo {
margin: 12px 0 0;
text-align: center;
font-size: 11px;
color: var(--text-secondary-color);
}
Loading