We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4eb9ec commit 79dfbd9Copy full SHA for 79dfbd9
src/App.tsx
@@ -210,22 +210,22 @@ function App() {
210
if (screenWidth <= 640) {
211
// 根据屏幕高度调整偏移量
212
if (screenHeight <= 667) { // iPhone 6/7/8
213
- return 8;
+ return 1;
214
} else if (screenHeight <= 812) { // iPhone X/XS
215
- return 10;
+ return 2;
216
} else if (screenHeight <= 896) { // iPhone XR/XS Max
217
- return 12;
+ return 4;
218
} else { // 更大的屏幕
219
- return 15;
+ return 6;
220
}
221
222
// 平板
223
else if (screenWidth <= 1024) {
224
- return 20;
+ return 8;
225
226
// 桌面端
227
else {
228
- return 25;
+ return 10;
229
230
};
231
0 commit comments