feat(app.js, styles): enhance connection state handling and update editor dimensions

- Added a new property to track the last connection state in CLIProxyManager.
- Updated the config editor availability logic to reflect changes in connection state.
- Increased minimum height for various editor components in styles to improve usability.
- Introduced responsive styles for smaller screens to ensure proper display of editor elements.
This commit is contained in:
Supra4E8C
2025-11-10 18:07:31 +08:00
parent 4f15c3f5c5
commit 3468fd8373
2 changed files with 24 additions and 3 deletions

6
app.js
View File

@@ -41,6 +41,7 @@ class CLIProxyManager {
statusEl: null
};
this.lastConfigFetchUrl = null;
this.lastEditorConnectionState = null;
this.init();
}
@@ -967,6 +968,7 @@ class CLIProxyManager {
}
this.refreshConfigEditor();
this.lastEditorConnectionState = this.isConnected;
}
refreshConfigEditor() {
@@ -1326,7 +1328,9 @@ class CLIProxyManager {
lastUpdate.textContent = new Date().toLocaleString('zh-CN');
this.updateConfigEditorAvailability();
if (this.lastEditorConnectionState !== this.isConnected) {
this.updateConfigEditorAvailability();
}
// 更新连接信息显示
this.updateConnectionInfo();