mirror of
https://github.com/Cola-Echo/Cola.git
synced 2026-06-06 03:35:50 +00:00
Add files via upload
This commit is contained in:
10
main.js
10
main.js
@@ -814,11 +814,11 @@ function restorePhone() {
|
|||||||
|
|
||||||
phone.classList.remove('minimized');
|
phone.classList.remove('minimized');
|
||||||
|
|
||||||
// 恢复原始位置或居中
|
// 清除缩小前保存的位置,让居中函数重新计算
|
||||||
if (settings.phoneOriginalPosition) {
|
delete settings.phoneOriginalPosition;
|
||||||
phone.style.left = settings.phoneOriginalPosition.left;
|
|
||||||
phone.style.top = settings.phoneOriginalPosition.top;
|
// 恢复到屏幕中央
|
||||||
}
|
centerPhoneInViewport({ force: true });
|
||||||
|
|
||||||
// 恢复时根据设置显示悬浮球
|
// 恢复时根据设置显示悬浮球
|
||||||
if (settings.floatingBallEnabled !== false) {
|
if (settings.floatingBallEnabled !== false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user