diff options
| author | Fuwn <[email protected]> | 2024-01-04 23:28:59 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-04 23:28:59 -0800 |
| commit | 8d50e8c20158d42ae1fca7705b936ea852836fa7 (patch) | |
| tree | 07e3c6d43396d1d84fccb93c14084d1fa412bd20 /src/lib | |
| parent | refactor(wrapped): refresh button style (diff) | |
| download | due.moe-8d50e8c20158d42ae1fca7705b936ea852836fa7.tar.xz due.moe-8d50e8c20158d42ae1fca7705b936ea852836fa7.zip | |
fix(error): no padding
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/Error/RateLimited.svelte | 22 | ||||
| -rw-r--r-- | src/lib/Tools/Wrapped.svelte | 3 |
2 files changed, 16 insertions, 9 deletions
diff --git a/src/lib/Error/RateLimited.svelte b/src/lib/Error/RateLimited.svelte index 1861ca16..b00bbd11 100644 --- a/src/lib/Error/RateLimited.svelte +++ b/src/lib/Error/RateLimited.svelte @@ -14,18 +14,21 @@ {type} could not be loaded. You might have been <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. </p> + {#if loginSessionError} <p> Your login session may have expired. Try logging out and logging back in, or try again in a few minutes. </p> {/if} + <slot /> + + <p /> + {#if contact} - <p> - If the problem persists, please contact - <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. - </p> + If the problem persists, please contact + <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. {/if} </li> </ul> @@ -34,18 +37,21 @@ {type} could not be loaded. You might have been <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. </p> + {#if loginSessionError} <p> Your login session may have expired. Try logging out and logging back in, or try again in a few minutes. </p> {/if} + <slot /> + + <p /> + {#if contact} - <p> - If the problem persists, please contact - <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. - </p> + If the problem persists, please contact + <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. {/if} {/if} </div> diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index 49704dcc..a01d9934 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -671,13 +671,14 @@ </div> </div> {:catch} - <Error type="User" card /> + <Error type="User" card list={false} /> {/await} {:catch} <Error card type={`${useFullActivityHistory ? 'Full-year activity' : 'Activity'} history`} loginSessionError={!useFullActivityHistory} + list={false} > {#if useFullActivityHistory} <p> |