- {#if attachment.kind === "image"}
- {#if imageUrl}
-

- {/if}
- {:else if previewError}
+ {#if previewError}
{previewError}
+ {:else if imageUrl}
+

{:else}
-
+
+ Vorschau wird erstellt
+
{/if}
diff --git a/src/lib/components/ProcessedZipArchiveEditor.svelte b/src/lib/components/ProcessedZipArchiveEditor.svelte
index d8d4241..f7fe174 100644
--- a/src/lib/components/ProcessedZipArchiveEditor.svelte
+++ b/src/lib/components/ProcessedZipArchiveEditor.svelte
@@ -4,11 +4,14 @@
type Props = {
archive: ProcessedZipArchive;
+ thumbnailWidth: number;
onArchiveChange?: (archive: ProcessedZipArchive) => void;
};
let {
- archive, onArchiveChange = () => {
+ archive,
+ thumbnailWidth = 200,
+ onArchiveChange = () => {
}
}: Props = $props();
@@ -112,6 +115,7 @@
class={`flex flex-col shrink-0 items-stretch gap-2 rounded-xl border bg-primary-50 p-2 ${
dropIndex === index ? "border-primary-400 ring-1 ring-primary-200" : "border-primary-100"
} ${dragIndex === index ? "opacity-60" : ""}`}
+ style={`width: ${thumbnailWidth}px;`}
draggable="true"
ondragstart={(event) => handleDragStart(index, event)}
ondragover={(event) => handleDragOver(index, event)}
@@ -128,13 +132,14 @@
::
-