UI fixes
This commit is contained in:
parent
58b39ac42a
commit
0f8a60a3b7
@ -395,23 +395,10 @@ export default function TrainingTab() {
|
||||
Feedback
|
||||
</div>
|
||||
|
||||
<div
|
||||
className={[
|
||||
'rounded-full px-2 py-0.5 text-[11px] font-medium',
|
||||
canStartTraining
|
||||
? 'bg-emerald-50 text-emerald-700 ring-1 ring-emerald-200 dark:bg-emerald-500/10 dark:text-emerald-200 dark:ring-emerald-500/20'
|
||||
: 'bg-amber-50 text-amber-700 ring-1 ring-amber-200 dark:bg-amber-500/10 dark:text-amber-200 dark:ring-amber-500/20',
|
||||
].join(' ')}
|
||||
>
|
||||
{feedbackCount}/{requiredCount}
|
||||
<div className="rounded-full bg-gray-100 px-2 py-0.5 text-[11px] font-medium text-gray-700 ring-1 ring-gray-200 dark:bg-white/10 dark:text-gray-200 dark:ring-white/10">
|
||||
{feedbackCount}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-1 text-[11px] leading-relaxed text-gray-500 dark:text-gray-400">
|
||||
{canStartTraining
|
||||
? 'Genug Feedback für das Training vorhanden.'
|
||||
: `${Math.max(0, requiredCount - feedbackCount)} weitere Bewertung(en) bis zum Training.`}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-4 space-y-2 text-xs">
|
||||
@ -624,7 +611,7 @@ export default function TrainingTab() {
|
||||
{/* Rechte Details/Korrektur */}
|
||||
<aside className="rounded-xl border border-gray-200 bg-white p-3 shadow-sm dark:border-white/10 dark:bg-gray-900/60">
|
||||
<div className="text-sm font-semibold text-gray-900 dark:text-white">
|
||||
Korrektur / Wahrheit
|
||||
Korrektur
|
||||
</div>
|
||||
|
||||
<div className="mt-1 text-xs text-gray-500 dark:text-gray-400">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user