replaced single dream type tag with dynamic tags display in DreamCard for improved categorization and flexibility in UI rendering

Signed-off-by: Matthias Puchstein <matthias@puchstein.bayern>
This commit is contained in:
2025-07-16 21:13:08 +02:00
parent ecd3fa120d
commit 33f68a7e49

View File

@@ -55,15 +55,17 @@ export default function DreamCard({dream, user, animationDelay = 0}: DreamCardPr
{formatDateWithTime(dream.date)} {formatDateWithTime(dream.date)}
</p> </p>
<div className="flex space-x-2"> <div className="flex space-x-2">
{/* Display dream type as a tag */} {/* Display dream tags */}
<span className="px-2 py-1 text-xs rounded-full" {dream.tags.map((tag, index) => (
style={{ <span key={index} className="px-2 py-1 text-xs rounded-full"
background: 'var(--accent-gradient)', style={{
color: 'white', background: 'var(--accent-gradient)',
boxShadow: '0 2px 5px var(--shadow)' color: 'white',
}}> boxShadow: '0 2px 5px var(--shadow)'
{dream.input.inputType} }}>
</span> {tag}
</span>
))}
</div> </div>
</div> </div>
</li> </li>