blob: aa20206a1ab34000714e12b0e4c8737cfdecfdc8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<script lang="ts">
import { getReaderContext } from '$lib/Reader';
import { accelerator } from '$lib/Shortcuts';
const reader = getReaderContext();
</script>
<button
type="button"
class="btn floating invisible xl:visible"
title={`${$reader.sidebar ? 'Hide' : 'Show'} menu`}
on:click={() => ($reader.sidebar = !$reader.sidebar)}
use:accelerator={'z'}
>
<span class="icon-lg icon-[material-symbols--dock-to-right]" />
</button>
|