Skip to content

Commit d28c220

Browse files
committed
feat: 调整 ExamSelectModal 样式,移除内容内边距;修正 ExamPractice 提交函数调用
1 parent 8394e64 commit d28c220

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

client/src/components/ExamSelectModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export function ExamSelectModal({
3333
width={600}
3434
styles={{
3535
body: { padding: 0, maxHeight: '60vh', overflowY: 'auto' },
36-
content: { padding: 0 },
3736
}}
3837
className="exam-select-modal"
3938
>

client/src/pages/ExamPractice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function ExamPractice({ examList, currentExam, loading, onSelectExam }: E
2828
useKeyboardShortcuts({
2929
onPrev: () => currentIndex > 0 && handlePrev(),
3030
onNext: () => currentExam && currentIndex < currentExam.questions.length - 1 && handleNext(),
31-
onSubmit: () => !submittedMap[currentIndex] && handleSubmit(),
31+
onSubmit: () => !submittedMap[currentIndex] && handleSubmitCurrent(),
3232
onSelectOption: (index) => {
3333
const q = currentExam?.questions[currentIndex];
3434
if (q && q.options && q.options[index] && !submittedMap[currentIndex]) {

0 commit comments

Comments
 (0)