-
+
+
+
+ {#if displayAsset}
+
+ {:else}
+ No asset selected
+ {/if}
+
+
+ {#if el.preview}
+ {#if displayAsset}
+
+ {:else}
+
📎
+ {/if}
+ {/if}
diff --git a/ui/src/GameSpace/elements/EmbedWal/config.ts b/ui/src/GameSpace/elements/EmbedWal/config.ts
index 87fae30..450c343 100644
--- a/ui/src/GameSpace/elements/EmbedWal/config.ts
+++ b/ui/src/GameSpace/elements/EmbedWal/config.ts
@@ -1,14 +1,16 @@
-import { type EmbedWalElement } from './type';
+import { type EmbedWalElement, VERSION } from './type';
const config = {
type: 'EmbedWal',
- version: 1,
+ version: VERSION,
label: 'Embed',
icon: '📎',
build: (): Partial
=> ({
height: 200,
width: 200,
url: '',
+ preview: true,
+ storedHeight: 200,
}),
};
diff --git a/ui/src/GameSpace/elements/EmbedWal/type.ts b/ui/src/GameSpace/elements/EmbedWal/type.ts
index d089aa8..02ac3f8 100644
--- a/ui/src/GameSpace/elements/EmbedWal/type.ts
+++ b/ui/src/GameSpace/elements/EmbedWal/type.ts
@@ -1,7 +1,11 @@
import { type GElementBase } from '~/store';
+export const VERSION = 2;
+
export type EmbedWalElement = GElementBase & {
type: 'EmbedWal';
- version: number;
+ version: typeof VERSION;
url: string;
+ preview: boolean;
+ storedHeight: number;
};