fix: resolve preview image not visible

This commit is contained in:
2026-02-04 02:10:12 +05:00
parent 475c4b8c96
commit bd73cd57fd
3 changed files with 35 additions and 27 deletions
+12 -5
View File
@@ -33,10 +33,6 @@
currentPanel = $panelStore;
});
onMount(() => {
// Инициализация
});
function handleImageUpload(image: string) {
uploadedImage = image;
errorMessage = null;
@@ -127,9 +123,11 @@
</div>
<div class="sidebar">
{#if $uiStore.currentStep === "text" && PanelPreview}
{#if $uiStore.currentStep === "text" && PanelPreview?.default}
{@const Preview = PanelPreview.default}
<Preview onDownload={handleDownload} />
{:else if $uiStore.currentStep === "text"}
<div class="loading">Загрузка предпросмотра...</div>
{/if}
</div>
</div>
@@ -189,6 +187,15 @@
font-weight: 500;
}
.loading {
text-align: center;
padding: 2rem;
color: #666;
background: #f9f9f9;
border-radius: 8px;
border: 2px solid #e9ecef;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;