diff --git a/src/ui/code-blocks/AToZChallengeCodeBlockView.svelte b/src/ui/code-blocks/AToZChallengeCodeBlockView.svelte
index c437bef..6080dfd 100644
--- a/src/ui/code-blocks/AToZChallengeCodeBlockView.svelte
+++ b/src/ui/code-blocks/AToZChallengeCodeBlockView.svelte
@@ -12,8 +12,10 @@
import OpenFileLink from "@ui/components/OpenFileLink.svelte";
import DateFilter from "@ui/components/DateFilter.svelte";
import BookCover from "@ui/components/BookCover.svelte";
+ import { setAppContext } from "@ui/stores/app";
const { plugin }: SvelteCodeBlockProps = $props();
+ setAppContext(plugin.app);
const settingsStore = createSettings(plugin);
setSettingsContext(settingsStore);
@@ -88,7 +90,7 @@
{#if metadata[letter]}
{@const meta = metadata[letter]}
- Current Page: {plugin.readingLog.getLastEntryForBook( - meta.file.basename, - )?.pagesReadTotal ?? 0} + Current Page: {logEntry?.pagesReadTotal ?? 0}
{/if} {#if settings.statusFilter === STATUS_READ} @@ -144,16 +151,20 @@ background-color: var(--background-secondary); border-radius: var(--radius-l); - :global(img) { - border-radius: var(--radius-l); + :global(.book-cover) { + width: 100%; + height: auto; + max-height: 100%; max-width: 30%; } - @container (width < 600px) { + @container (width < 700px) { flex-direction: column; align-items: center; - :global(img) { + :global(.book-cover) { + height: 100%; + width: auto; max-height: 30rem; max-width: 100%; } diff --git a/src/ui/components/TableView.svelte b/src/ui/components/TableView.svelte index 098db6d..cea1e04 100644 --- a/src/ui/components/TableView.svelte +++ b/src/ui/components/TableView.svelte @@ -1,6 +1,5 @@ @@ -38,7 +36,7 @@ {#each metadataStore.metadata as meta}