Skip to content

Commit e3d6346

Browse files
committed
优化:toast 和 loading 显示位置优化
1 parent 4c805a4 commit e3d6346

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- 优化:系统未捕获异常日志记录
77
- 优化:工单提交日志收集完善更多信息,方便排查问题
88
- 优化:将已连接的设备排在最前面,剩下的按照id排序 [#pr-42](https://github.com/modstart-lib/linkandroid/pull/42/files)
9+
- 优化:toast 和 loading 显示位置优化
910
- 修复:windows下路径编码问题
1011
- 修复:版本号对比检测异常问题修复
1112

electron/mapi/app/loading.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const makeLoading = (msg: string, options?: {
120120
})()`))
121121
win.setSize(width + 20, height)
122122
const x = display.workArea.x + (display.workArea.width / 2) - ((width + 20) / 2)
123-
const y = display.workArea.y + (display.workArea.height * 2 / 3)
123+
const y = display.workArea.y + (display.workArea.height * 1 / 4)
124124
win.setPosition(Math.floor(x), Math.floor(y))
125125
win.show()
126126
if (options.percentAuto) {

electron/mapi/app/toast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const makeToast = (msg: string, options?: {
104104
})()`))
105105
win.setSize(width + 20, height)
106106
const x = display.workArea.x + (display.workArea.width / 2) - ((width + 20) / 2)
107-
const y = display.workArea.y + (display.workArea.height * 2 / 3)
107+
const y = display.workArea.y + (display.workArea.height * 1 / 4)
108108
win.setPosition(Math.floor(x), Math.floor(y))
109109
win.show()
110110
// win.webContents.openDevTools({

0 commit comments

Comments
 (0)