- {#each currentGroup as pg, i}
+ {#each currentGroup as pg, i (pg)}
{#await resolveUrl(store.pageUrls[pg - 1], 999)}
-
![Page {pg}]()
+
+
+
{:then src}
![Page {pg}]()
{/await}
@@ -504,7 +510,9 @@
{:else if pageReady}
{#await resolveUrl(store.pageUrls[store.pageNumber - 1], 999)}
-
![Page {store.pageNumber}]()
+
+
+
{:then src}
![Page {store.pageNumber}]()
{/await}
@@ -536,7 +544,23 @@
width: var(--effective-width, 100%);
max-width: var(--effective-width, 100%);
aspect-ratio: var(--aspect, 0.667);
- background: transparent;
+ border-radius: var(--radius-sm);
+ background: color-mix(in srgb, var(--bg-raised) 90%, transparent);
+ }
+
+ .page-loader {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: color-mix(in srgb, var(--bg-raised) 90%, transparent);
+ border-radius: var(--radius-sm);
+ }
+
+ .page-loader-single {
+ width: min(100%, var(--effective-width, 100%));
+ max-width: var(--effective-width, 100%);
+ max-height: calc(100vh - 80px);
+ aspect-ratio: 2 / 3;
}
.img { display: block; user-select: none; image-rendering: auto; }