UI Refresh & Logic Updates: New answer color scheme, improved Boolean/Number handling for results, and localized formatting.
This commit is contained in:
@@ -113,7 +113,7 @@ function PresentApp() {
|
||||
{question?.typ?.toLowerCase() !== 'freitext' && (
|
||||
<div className="grid grid-cols-2 gap-4 flex-1 max-h-96">
|
||||
{(question?.antworten || []).map((a) => {
|
||||
const colors = { A: 'bg-red-600', B: 'bg-blue-600', C: 'bg-amber-600', D: 'bg-green-600' };
|
||||
const colors = { A: 'bg-blue-600', B: 'bg-purple-600', C: 'bg-amber-600', D: 'bg-cyan-600' };
|
||||
return (
|
||||
<div key={a.key} className={`${colors[a.key] || 'bg-gray-600'} rounded-2xl flex items-center justify-center p-6 text-2xl font-bold`}>{a.text}</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user