diff --git a/frontend/src/components/settings/SmallPreview.svelte b/frontend/src/components/settings/SmallPreview.svelte new file mode 100644 index 0000000..3ebe8cf --- /dev/null +++ b/frontend/src/components/settings/SmallPreview.svelte @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/sections/Settings.svelte b/frontend/src/sections/Settings.svelte index 996f2ee..ef09ef8 100644 --- a/frontend/src/sections/Settings.svelte +++ b/frontend/src/sections/Settings.svelte @@ -11,6 +11,7 @@ import Checkerboard from '../components/settings/Checkerboard.svelte' import Borders from '../components/settings/Borders.svelte' import Grid from '../components/settings/Grid.svelte' + import SmallPreview from '../components/settings/SmallPreview.svelte'
@@ -27,6 +28,9 @@ + + +
diff --git a/frontend/src/sections/SmallStackPreview.svelte b/frontend/src/sections/SmallStackPreview.svelte index 145b737..7014f16 100644 --- a/frontend/src/sections/SmallStackPreview.svelte +++ b/frontend/src/sections/SmallStackPreview.svelte @@ -1,21 +1,18 @@ - +
+ +
+ + diff --git a/frontend/src/sections/Stacks.svelte b/frontend/src/sections/Stacks.svelte index 97a52e3..82909af 100644 --- a/frontend/src/sections/Stacks.svelte +++ b/frontend/src/sections/Stacks.svelte @@ -6,6 +6,8 @@ import Button from '../components/common/Button.svelte' import { fileStates } from '../stores/file' import RenameModal from '../components/RenameModal.svelte' + import SmallStackPreview from './SmallStackPreview.svelte' + import { smallPreviewSettings } from '../stores/smallpreview' export let file: LoadedFile @@ -188,6 +190,11 @@
+ {#if $smallPreviewSettings.show} + + {:else} + + {/if}