updated chip input type in MockDreams: replaced description with text, adjusted Dream type, and extended UI components for consistent rendering across DreamPage and DreamCard

Signed-off-by: Matthias Puchstein <matthias@puchstein.bayern>
This commit is contained in:
Matthias Puchstein
2025-07-16 23:13:00 +02:00
parent 881f832722
commit 0c3b2bf81d
4 changed files with 9 additions and 5 deletions

View File

@@ -70,7 +70,10 @@ export default function DreamPage() {
{dream.input.inputType === 'image' && (<img alt={dream.input.imgAlt}></img>)}
</div>)}
<p className="leading-relaxed text-base sm:text-lg">
{(dream.input.inputType === 'text' && dream.input.input) || (dream.input.inputType === 'audio' && dream.input.transcript) || (dream.input.inputType === 'image' && dream.input.description)}
{(dream.input.inputType === 'text' && dream.input.input)
|| (dream.input.inputType === 'audio' && dream.input.transcript)
|| (dream.input.inputType === 'image' && dream.input.description)
|| (dream.input.inputType === 'chip' && dream.input.text)}
</p>
</div>