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:
6
app.js
6
app.js
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user