Start implementing new styles
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { currentManga, currentVolume } from '$lib/catalog';
|
||||
import Button from '$lib/components/Button.svelte';
|
||||
import { Panzoom, zoomOriginal } from '$lib/panzoom';
|
||||
import { currentVolume } from '$lib/catalog';
|
||||
import { Panzoom } from '$lib/panzoom';
|
||||
import MangaPage from './MangaPage.svelte';
|
||||
|
||||
const volume = $currentVolume;
|
||||
@@ -19,22 +18,8 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if volume}
|
||||
<div>
|
||||
<Button on:click={zoomOriginal}>Reset Zoom</Button>
|
||||
<Button on:click={left}>{'<'}</Button>
|
||||
<Button on:click={right}>{'>'}</Button>
|
||||
</div>
|
||||
{#if volume && pages}
|
||||
<Panzoom>
|
||||
<MangaPage page={pages[page - 1]} src={Object.values(volume?.files)[page - 1]} />
|
||||
<MangaPage page={pages[page - 1]} src={Object.values(volume?.files)[page - 1]} {left} {right} />
|
||||
</Panzoom>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
div {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 10px;
|
||||
z-index: 1;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user