Explorar o código

Merge pull request #434 from hamid-gh98/main

[FIX] siderDrawer button functionality + [Update] redirect restart panel
Ho3ein hai 1 ano
pai
achega
5487dc41cc

+ 6 - 0
web/assets/css/custom.css

@@ -28,6 +28,12 @@ body {
     display: none;
 }
 
+@media (max-width: 768px) {
+    .ant-layout-sider {
+        display: none;
+    }
+}
+
 .ant-card {
     border-radius: 1.5rem;
 }

+ 1 - 0
web/html/xui/inbounds.html

@@ -317,6 +317,7 @@
         delimiters: ['[[', ']]'],
         el: '#app',
         data: {
+            siderDrawer,
             themeSwitcher,
             spinning: false,
             inbounds: [],

+ 1 - 0
web/html/xui/index.html

@@ -388,6 +388,7 @@
         delimiters: ['[[', ']]'],
         el: '#app',
         data: {
+            siderDrawer,
             themeSwitcher,
             status: new Status(),
             versionModal,

+ 2 - 1
web/html/xui/settings.html

@@ -241,6 +241,7 @@
         delimiters: ['[[', ']]'],
         el: '#app',
         data: {
+            siderDrawer,
             themeSwitcher,
             spinning: false,
             oldAllSetting: new AllSetting(),
@@ -357,7 +358,7 @@
                 if (msg.success) {
                     this.loading(true);
                     await PromiseUtil.sleep(5000);
-                    location.reload();
+                    window.location.replace(this.allSetting.webBasePath + "panel/settings");
                 }
             },
             async getUserSecret() {