fix(decks/from-image): kontextbewusste Statusmeldungen für URL-only-Generierung
🌐-Emoji und angepasste Texte wenn nur URL (keine Bilder) verarbeitet wird.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0c68186563
commit
b761cd52c9
2 changed files with 7 additions and 5 deletions
|
|
@ -275,7 +275,9 @@
|
||||||
<p class="ai-hint" aria-live="polite">Generiere… ca. 10–60 s</p>
|
<p class="ai-hint" aria-live="polite">Generiere… ca. 10–60 s</p>
|
||||||
{/if}
|
{/if}
|
||||||
{#if imageGenerating}
|
{#if imageGenerating}
|
||||||
<p class="ai-hint" aria-live="polite">Analysiere Bild… ca. 15–60 s</p>
|
<p class="ai-hint" aria-live="polite">
|
||||||
|
{imageFiles.length > 0 && imageUrl.trim() ? 'Bild + URL' : imageUrl.trim() ? 'URL' : 'Bild'} wird analysiert… ca. 15–60 s
|
||||||
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
|
@ -287,7 +289,7 @@
|
||||||
</button>
|
</button>
|
||||||
<button type="button" disabled={(imageFiles.length === 0 && !imageUrl.trim()) || imageGenerating || saving || generating} onclick={onFromImage} class="btn-ai">
|
<button type="button" disabled={(imageFiles.length === 0 && !imageUrl.trim()) || imageGenerating || saving || generating} onclick={onFromImage} class="btn-ai">
|
||||||
{#if imageGenerating}
|
{#if imageGenerating}
|
||||||
🖼 Analysiere…
|
{imageUrl.trim() && imageFiles.length === 0 ? '🌐' : '🖼'} Analysiere…
|
||||||
{:else if imageFiles.length > 0 && imageUrl.trim()}
|
{:else if imageFiles.length > 0 && imageUrl.trim()}
|
||||||
🖼 Bild + URL
|
🖼 Bild + URL
|
||||||
{:else if imageUrl.trim()}
|
{:else if imageUrl.trim()}
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@
|
||||||
|
|
||||||
{#if imageGenerating}
|
{#if imageGenerating}
|
||||||
<p class="mt-2 text-xs text-[hsl(var(--color-muted-foreground))]" aria-live="polite">
|
<p class="mt-2 text-xs text-[hsl(var(--color-muted-foreground))]" aria-live="polite">
|
||||||
Vision-Modell analysiert Bild… typischerweise 15–60 Sekunden.
|
{imageFiles.length > 0 && imageUrl.trim() ? 'Bild + URL werden analysiert' : imageUrl.trim() ? 'URL wird geladen und analysiert' : 'Vision-Modell analysiert Bild'}… typischerweise 15–60 Sekunden.
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
@ -322,11 +322,11 @@
|
||||||
class="mt-3 rounded border border-[hsl(var(--color-primary))] px-4 py-2 text-sm text-[hsl(var(--color-primary))] disabled:opacity-50 hover:bg-[hsl(var(--color-primary)/0.08)]"
|
class="mt-3 rounded border border-[hsl(var(--color-primary))] px-4 py-2 text-sm text-[hsl(var(--color-primary))] disabled:opacity-50 hover:bg-[hsl(var(--color-primary)/0.08)]"
|
||||||
>
|
>
|
||||||
{#if imageGenerating}
|
{#if imageGenerating}
|
||||||
🖼 Analysiere…
|
{imageUrl.trim() && imageFiles.length === 0 ? '🌐' : '🖼'} Analysiere…
|
||||||
{:else if imageFiles.length > 0 && imageUrl.trim()}
|
{:else if imageFiles.length > 0 && imageUrl.trim()}
|
||||||
🖼 Aus {imagePreviews.length > 1 ? `${imagePreviews.length} Bildern` : 'Bild'} + URL generieren
|
🖼 Aus {imagePreviews.length > 1 ? `${imagePreviews.length} Bildern` : 'Bild'} + URL generieren
|
||||||
{:else if imageUrl.trim()}
|
{:else if imageUrl.trim()}
|
||||||
🖼 Aus URL generieren
|
🌐 Aus URL generieren
|
||||||
{:else}
|
{:else}
|
||||||
🖼 Aus {imagePreviews.length > 1 ? `${imagePreviews.length} Bildern` : 'Bild'} generieren
|
🖼 Aus {imagePreviews.length > 1 ? `${imagePreviews.length} Bildern` : 'Bild'} generieren
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue