fix: show toasts in fullscreen

fix: don't persist RSS search
it was confusing for people where the search got disabled when they went to episodes and back
This commit is contained in:
ThaUnknown 2023-07-30 12:38:06 +02:00
parent 6e1cf2f8e7
commit fda8fb3d2a
4 changed files with 165 additions and 163 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "4.2.10",
"version": "4.2.11",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
"main": "build/main.js",

View file

@ -28,7 +28,6 @@
setContext('view', view)
</script>
<Toaster visibleToasts={3} position='top-right' theme='dark' richColors duration={10000} />
<div class='page-wrapper with-sidebar with-transitions bg-dark' data-sidebar-type='overlayed-all'>
<IspBlock />
<Menubar bind:page={$page} />
@ -36,6 +35,7 @@
<Logout />
<Sidebar bind:page={$page} />
<div class='overflow-hidden content-wrapper h-full z-10'>
<Toaster visibleToasts={3} position='top-right' theme='dark' richColors duration={10000} />
<RSSView />
<Router bind:page={$page} />
</div>

View file

@ -28,9 +28,9 @@
<!-- eslint-disable-next-line svelte/valid-compile -->
<div class='font-size-16'>Visit <a class='text-primary pointer' use:click={() => { window.IPC.emit('open', 'https://thewiki.moe/tutorials/unblock/') }}>this guide</a> for a tutorial on how to bypass ISP blocks.</div>
<div class='d-flex w-full mt-20 pt-20'>
<button class='btn ml-auto mr-5' type='button' use:click={() => { block = false }}>I Understand</button>
<button class='btn btn-primary mr-5' type='button' use:click={() => { window.IPC.emit('open', 'https://thewiki.moe/tutorials/unblock/') }}>Open Guide</button>
<button class='btn btn-primary' type='button' use:click={testConnection}>Reconnect</button>
<button class='btn ml-auto mr-5' type='button' on:click={() => { block = false }}>I Understand</button>
<button class='btn btn-primary mr-5' type='button' on:click={() => { window.IPC.emit('open', 'https://thewiki.moe/tutorials/unblock/') }}>Open Guide</button>
<button class='btn btn-primary' type='button' on:click={testConnection}>Reconnect</button>
</div>
</div>
</div>

View file

@ -50,6 +50,8 @@
canScroll = true
}
}
if ($search.clearNext) $search = {}
if ($search.disableSearch) $search.clearNext = true
</script>
<div class='h-full w-full overflow-y-scroll d-flex flex-wrap flex-row root overflow-x-hidden px-50 justify-content-center align-content-start' use:smoothScroll use:loadTillFull on:scroll={infiniteScroll}>