Skip to content

Commit a0bb44e

Browse files
committed
fix: stabilize bottom navigation bar and prevent jittering on mobile Safari/Chrome
1 parent 593336b commit a0bb44e

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/lib/mobileCompanionUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const configuredMobileCompanionOrigin =
33

44
export const MOBILE_COMPANION_ORIGIN =
55
configuredMobileCompanionOrigin || "https://nnnsmm.github.io/Launcherg-Mod/";
6-
export const MOBILE_COMPANION_CLIENT_VERSION = "mobile-pwa-v17";
6+
export const MOBILE_COMPANION_CLIENT_VERSION = "mobile-pwa-v18";
77
export const SKYWAY_CONNECT_ENDPOINT = "https://launcherg.ryoha.moe/connect";
88

99
export type MobileCompanionUrlParams = {

src/views/MobileCompanion.svelte

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,18 +1343,28 @@
13431343
</main>
13441344

13451345
<style>
1346+
:global(body), :global(html) {
1347+
overscroll-behavior-y: none;
1348+
overflow: hidden;
1349+
height: 100%;
1350+
width: 100%;
1351+
margin: 0;
1352+
padding: 0;
1353+
}
1354+
13461355
.mobile-shell {
13471356
position: fixed;
13481357
top: 0;
13491358
left: 0;
13501359
right: 0;
13511360
bottom: 0;
1352-
height: auto;
1361+
height: 100%;
13531362
background: #151515;
13541363
color: white;
13551364
display: flex;
13561365
flex-direction: column;
13571366
overflow: hidden;
1367+
overscroll-behavior-y: none;
13581368
max-width: 620px;
13591369
margin: 0 auto;
13601370
}
@@ -2054,6 +2064,7 @@
20542064
.bottom-nav {
20552065
width: 100%;
20562066
height: 72px;
2067+
flex-shrink: 0;
20572068
display: grid;
20582069
grid-template-columns: repeat(3, minmax(0, 1fr));
20592070
border-top: 1px solid rgb(255 255 255 / 0.1);

0 commit comments

Comments
 (0)