From 6178e6cb5fd98fe34ab358df9d202bcfa33ab53e Mon Sep 17 00:00:00 2001 From: Aleksey Razorvin <> Date: Sat, 21 Mar 2026 13:37:14 +0500 Subject: [PATCH] fix: move version history section below header on test edit page Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/TestEdit/index.tsx | 116 +++++++++++++------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/frontend/src/pages/TestEdit/index.tsx b/frontend/src/pages/TestEdit/index.tsx index 20b3b70..8e3b6ed 100644 --- a/frontend/src/pages/TestEdit/index.tsx +++ b/frontend/src/pages/TestEdit/index.tsx @@ -127,71 +127,15 @@ export default function TestEdit() { style={{ marginBottom: 16 }} /> - {test.title} - - {test.description && ( - - {test.description} - - )} - - - - {test.questions.length} - {test.passing_score}% - - {test.time_limit ? `${test.time_limit} мин` : 'Без ограничений'} - - - {test.allow_navigation_back ? ( - Разрешён - ) : ( - Запрещён - )} - - {test.version} - - {new Date(test.created_at).toLocaleDateString('ru-RU')} - - - - - Вопросы ({test.questions.length}) - - {test.questions.map((question, index) => ( - - - {index + 1}. {question.text} - - ( - - - {answer.is_correct ? ( - - ) : ( - - )} - {answer.text} - - - )} - /> - - ))} - {versions.length > 1 && ( <> - - История версий - + История версий dataSource={versions} rowKey="id" size="small" pagination={false} + style={{ marginBottom: 24 }} rowClassName={(record) => (record.id === test.id ? 'ant-table-row-selected' : '')} columns={ [ @@ -241,6 +185,62 @@ export default function TestEdit() { /> )} + + {test.title} + + {test.description && ( + + {test.description} + + )} + + + + {test.questions.length} + {test.passing_score}% + + {test.time_limit ? `${test.time_limit} мин` : 'Без ограничений'} + + + {test.allow_navigation_back ? ( + Разрешён + ) : ( + Запрещён + )} + + {test.version} + + {new Date(test.created_at).toLocaleDateString('ru-RU')} + + + + + Вопросы ({test.questions.length}) + + {test.questions.map((question, index) => ( + + + {index + 1}. {question.text} + + ( + + + {answer.is_correct ? ( + + ) : ( + + )} + {answer.text} + + + )} + /> + + ))} + ) }