diff --git a/src/locales/en.json b/src/locales/en.json index 248c3c58..2a1b709e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -25,7 +25,7 @@ "percentage": "from all", "avg": "Pity average", "subtitle": "Calculated from data submitted by {user} paimon.moe users", - "detail": "Global With Tally" + "detail": "Global Wish Tally" }, "wish": { "message": "Import your wish history to keep it more than 6 months! Also automatically count your pity and statistic about your wishes with fancy charts 📊", diff --git a/src/routes/wish/[id].svelte b/src/routes/wish/[id].svelte index d77c9e26..036bb2fe 100644 --- a/src/routes/wish/[id].svelte +++ b/src/routes/wish/[id].svelte @@ -65,6 +65,8 @@ let currentBannerIndex = -1; let selectedBanners; + let isSafari = false; + selectedBanners = banners[bannerType].map((e) => { // banner data based on Asia time const diff = e.timezoneDependent === true ? 8 - getTimeOffset() : 0; @@ -370,6 +372,13 @@ onMount(() => { readLocalData(); + + isSafari = + navigator.vendor && + navigator.vendor.indexOf('Apple') > -1 && + navigator.userAgent && + navigator.userAgent.indexOf('CriOS') == -1 && + navigator.userAgent.indexOf('FxiOS') == -1; }); function sort(by) { @@ -503,7 +512,11 @@ {#each sorted as pull} - + {pull.at} - {#if sortBy === 'time' && ((pull.end && !sortOrder) || (pull.start && sortOrder))} + {#if sortBy === 'time' && !isSafari && ((pull.end && !sortOrder) || (pull.start && sortOrder))}
{/if} @@ -734,4 +747,10 @@ top: -1px; } } + + /* safari row background */ + .safari-only { + background-attachment: fixed !important; + background-position-x: 300px !important; + } diff --git a/src/routes/wish/index.svelte b/src/routes/wish/index.svelte index 64fc6f5d..52e31cae 100644 --- a/src/routes/wish/index.svelte +++ b/src/routes/wish/index.svelte @@ -116,11 +116,11 @@ Wish Counter - Paimon.moe