diff --git a/src/pages/PerformanceDomainPracticePage.tsx b/src/pages/PerformanceDomainPracticePage.tsx index ce083b4..3997480 100644 --- a/src/pages/PerformanceDomainPracticePage.tsx +++ b/src/pages/PerformanceDomainPracticePage.tsx @@ -344,7 +344,7 @@ export default function PerformanceDomainPracticePage() { onClick={() => handleSelect(domain.id)} disabled={optionDisabled} className={clsx( - 'relative flex h-[112px] flex-col gap-2 overflow-hidden rounded-xl border bg-white p-3 text-left shadow-sm transition-colors dark:bg-gray-800', + 'relative flex h-16 items-center justify-center overflow-hidden rounded-xl border bg-white p-1 text-center shadow-sm transition-colors dark:bg-gray-800 sm:h-[112px] sm:flex-col sm:items-stretch sm:justify-start sm:gap-2 sm:p-3 sm:text-left', 'border-gray-100 hover:border-indigo-200 hover:bg-indigo-50/40 dark:border-gray-700 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/20', optionDisabled && 'cursor-default hover:bg-white dark:hover:bg-gray-800', shouldKeepDisabled && 'bg-gray-50 opacity-55 dark:bg-gray-800/70', @@ -354,7 +354,7 @@ export default function PerformanceDomainPracticePage() { 'border-rose-300 bg-rose-50 shadow-[inset_0_0_0_2px_rgba(251,113,133,0.65)] dark:border-rose-600 dark:bg-rose-950/30 dark:shadow-[inset_0_0_0_2px_rgba(244,63,94,0.45)]' )} > -
+
-
+
+ {domain.name.charAt(0)} +
+ +
{(() => { const activeProgress = progress.scope === 'expectedGoal' ? expectedGoalProgress : keyPointProgress const activeLabel = progress.scope === 'expectedGoal' ? '目标' : '要点' @@ -430,15 +434,15 @@ export default function PerformanceDomainPracticePage() { })()}
-
+
{isCorrectSelected && ( - + )} {isWrongSelected && ( - + )} {shouldHighlightCorrect && !isCorrectSelected && ( - + 正确 )} @@ -633,7 +637,7 @@ export default function PerformanceDomainPracticePage() {
-
+
{performanceDomains.map((domain) => renderOptionButton(domain.id))}