Skip to content

Commit

Permalink
Fix dialog center
Browse files Browse the repository at this point in the history
  • Loading branch information
HeHang0 committed Mar 16, 2024
1 parent 87796d8 commit d8e9186
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/stores/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const useSettingStore = defineStore('setting', {
}
},
handleThemeChange() {
this.setAppTheme({ id: darkModeMediaQuery.matches ? 'dark' : '' });
this.setAppTheme({ id: darkModeMediaQuery.matches ? 'dark pure' : '' });
},
updateDarkMode(dark: boolean) {
if (!this.autoAppTheme) return;
Expand Down Expand Up @@ -286,6 +286,7 @@ export const useSettingStore = defineStore('setting', {
});
if (themeColor) {
themeColor.content = dark ? '#13131a' : '#f7f7f7';
if (appTheme?.id.includes('pure')) themeColor.content = 'black';
}
updateTheme(preferredColorScheme);
},
Expand Down
4 changes: 4 additions & 0 deletions web/src/style/element.less
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ input {
.el-message-box__content {
--el-messagebox-padding-primary: 10px;
padding: 0 var(--el-messagebox-padding-primary);

.el-message-box__container {
justify-content: center;
}
}

.el-message-box__message {
Expand Down

0 comments on commit d8e9186

Please sign in to comment.