diff --git a/frontend/src/pages/CopyTradingList.tsx b/frontend/src/pages/CopyTradingList.tsx index 58c8c4d..5e204f8 100644 --- a/frontend/src/pages/CopyTradingList.tsx +++ b/frontend/src/pages/CopyTradingList.tsx @@ -297,7 +297,7 @@ const CopyTradingList: React.FC = () => { { title: t('common.actions') || '操作', key: 'action', - width: isMobile ? 100 : 200, + width: isMobile ? 100 : 160, fixed: 'right' as const, render: (_: any, record: CopyTrading) => { const menuItems: MenuProps['items'] = [ @@ -321,61 +321,101 @@ const CopyTradingList: React.FC = () => { } } ] - + return ( - - {!isMobile && ( - <> - - - - )} + + +
{ + setEditModalCopyTradingId(record.id.toString()) + setEditModalOpen(true) + }} + style={{ + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + width: '32px', + height: '32px', + cursor: 'pointer', + borderRadius: '6px', + transition: 'background-color 0.2s' + }} + onMouseEnter={(e) => { e.currentTarget.style.backgroundColor = '#f0f0f0' }} + onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent' }} + > + +
+
+ + +
{ + setStatisticsModalCopyTradingId(record.id.toString()) + setStatisticsModalOpen(true) + }} + style={{ + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + width: '32px', + height: '32px', + cursor: 'pointer', + borderRadius: '6px', + transition: 'background-color 0.2s' + }} + onMouseEnter={(e) => { e.currentTarget.style.backgroundColor = '#f0f0f0' }} + onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent' }} + > + +
+
+ - - - {!isMobile && ( - handleDelete(record.id)} - okText={t('common.confirm') || '确定'} - cancelText={t('common.cancel') || '取消'} - > - - - )} + + + + + + handleDelete(record.id)} + okText={t('common.confirm') || '确定'} + cancelText={t('common.cancel') || '取消'} + > + +
{ e.currentTarget.style.backgroundColor = '#fff1f0' }} + onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent' }} + > + +
+
+
) }