Skip to content

Commit 79dfbd9

Browse files
committed
修改格式适配测试
1 parent f4eb9ec commit 79dfbd9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/App.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,22 +210,22 @@ function App() {
210210
if (screenWidth <= 640) {
211211
// 根据屏幕高度调整偏移量
212212
if (screenHeight <= 667) { // iPhone 6/7/8
213-
return 8;
213+
return 1;
214214
} else if (screenHeight <= 812) { // iPhone X/XS
215-
return 10;
215+
return 2;
216216
} else if (screenHeight <= 896) { // iPhone XR/XS Max
217-
return 12;
217+
return 4;
218218
} else { // 更大的屏幕
219-
return 15;
219+
return 6;
220220
}
221221
}
222222
// 平板
223223
else if (screenWidth <= 1024) {
224-
return 20;
224+
return 8;
225225
}
226226
// 桌面端
227227
else {
228-
return 25;
228+
return 10;
229229
}
230230
};
231231

0 commit comments

Comments
 (0)