From f414f62f31945a8bb46fc9e439f6856a83662d05 Mon Sep 17 00:00:00 2001 From: Aleksey Razorvin <> Date: Sat, 21 Mar 2026 13:16:28 +0500 Subject: [PATCH] feat: replace action buttons with dropdown menu in test list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Колонка с названием теста теперь занимает всю свободную ширину. Три действия (Открыть, Изменить, Пройти тест) убраны в выпадающее меню по кнопке «…». Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/TestList/index.tsx | 58 +++++++++++++++------------ 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/frontend/src/pages/TestList/index.tsx b/frontend/src/pages/TestList/index.tsx index 39cfcb0..42e9ec5 100644 --- a/frontend/src/pages/TestList/index.tsx +++ b/frontend/src/pages/TestList/index.tsx @@ -1,6 +1,6 @@ -import { EditOutlined, PlayCircleOutlined, PlusOutlined } from '@ant-design/icons' +import { EditOutlined, MoreOutlined, PlayCircleOutlined, PlusOutlined } from '@ant-design/icons' import { useQuery } from '@tanstack/react-query' -import { Button, Space, Spin, Table, Tag, Typography } from 'antd' +import { Button, Dropdown, Spin, Table, Typography } from 'antd' import type { ColumnsType } from 'antd/es/table' import { useNavigate } from 'react-router-dom' @@ -58,28 +58,36 @@ export default function TestList() { { title: '', key: 'actions', - width: 200, + width: 60, + align: 'center', render: (_: unknown, record: TestListItem) => ( - - - - - + navigate(`/tests/${record.id}`), + }, + { + key: 'edit', + icon: , + label: 'Изменить', + onClick: () => navigate(`/tests/${record.id}/edit`), + }, + { type: 'divider' }, + { + key: 'take', + icon: , + label: 'Пройти тест', + onClick: () => navigate(`/tests/${record.id}/take`), + }, + ], + }} + trigger={['click']} + > + - +