Skip to content

Commit

Permalink
Merge pull request #434 from hamid-gh98/main
Browse files Browse the repository at this point in the history
[FIX] siderDrawer button functionality + [Update] redirect restart panel
  • Loading branch information
MHSanaei authored May 14, 2023
2 parents 7b5dd2d + 5a908b9 commit 5487dc4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions web/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ body {
display: none;
}

@media (max-width: 768px) {
.ant-layout-sider {
display: none;
}
}

.ant-card {
border-radius: 1.5rem;
}
Expand Down
1 change: 1 addition & 0 deletions web/html/xui/inbounds.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
delimiters: ['[[', ']]'],
el: '#app',
data: {
siderDrawer,
themeSwitcher,
spinning: false,
inbounds: [],
Expand Down
1 change: 1 addition & 0 deletions web/html/xui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ <h2>{{ i18n "pages.index.xraySwitchClickDesk"}}</h2>
delimiters: ['[[', ']]'],
el: '#app',
data: {
siderDrawer,
themeSwitcher,
status: new Status(),
versionModal,
Expand Down
3 changes: 2 additions & 1 deletion web/html/xui/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ <h2 style="color: inherit; font-weight: bold; font-size: 18px; padding: 10px 20p
delimiters: ['[[', ']]'],
el: '#app',
data: {
siderDrawer,
themeSwitcher,
spinning: false,
oldAllSetting: new AllSetting(),
Expand Down Expand Up @@ -357,7 +358,7 @@ <h2 style="color: inherit; font-weight: bold; font-size: 18px; padding: 10px 20p
if (msg.success) {
this.loading(true);
await PromiseUtil.sleep(5000);
location.reload();
window.location.replace(this.allSetting.webBasePath + "panel/settings");
}
},
async getUserSecret() {
Expand Down

0 comments on commit 5487dc4

Please sign in to comment.