fix: resolve preview not working

This commit is contained in:
2026-02-04 09:28:36 +05:00
parent f1f2e74842
commit fb2ded3a6e
+4 -2
View File
@@ -1,8 +1,10 @@
<script lang="ts">
import { uiStore, setCurrentStep } from "../stores/uiStore";
import type { Panel } from "../lib/types/panel";
type TextItem = Panel["texts"][0];
import { Stage, Layer, Image, Text } from "svelte-konva";
import { Button, IconButton } from "../lib/components/ui";
import { Button } from "../lib/components/ui";
let {
panel,
@@ -88,7 +90,7 @@
{#each panel.texts || [] as textItem (textItem.id)}
{@const textPosition = getTextPosition(textItem)}
<Text
text={editingText ? editText : textItem.text}
text={textItem.text}
fontSize={textItem.fontSize}
fill={textItem.color}
fontFamily={textItem.fontFamily}