Adjust settings buttons

This commit is contained in:
Shaun
2023-11-13 15:20:00 +09:00
parent 58a4b6be16
commit a2f59640af
3 changed files with 20 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { toggleFullScreen } from '$lib/panzoom';
import { isReader } from '$lib/util';
import { Button } from 'flowbite-svelte';
</script>
{#if isReader()}
<div class="flex flex-col gap-2">
<Button color="alternative" on:click={toggleFullScreen}>Toggle fullscreen</Button>
<Button color="alternative" on:click={() => goto(`/${$page.params.manga}`)}>Close reader</Button
>
</div>
{/if}