|
|
@@ -1,6 +1,6 @@
|
|
|
import React from 'react';
|
|
|
import { useSelector, useDispatch } from 'react-redux';
|
|
|
-import { Card, Row, Col, Empty, Image } from 'antd';
|
|
|
+import { Card, Row, Col, Empty, Image, Tooltip } from 'antd';
|
|
|
import { getViewIconUrl } from '@/API/bodyPosition';
|
|
|
|
|
|
import type { RootState } from '@/states/store'; // 假设RootState已定义
|
|
|
@@ -41,12 +41,18 @@ const RegisterViewList: React.FC = () => {
|
|
|
view.view_icon_name || view.view_coach_name
|
|
|
)}
|
|
|
style={{
|
|
|
- width: '100%',
|
|
|
- height: 'auto',
|
|
|
- objectFit: 'cover',
|
|
|
+ width: '100px',
|
|
|
+ height: '100px',
|
|
|
+ //objectFit: 'cover',
|
|
|
}}
|
|
|
/>
|
|
|
- <div>{view.view_name_local}</div>
|
|
|
+ <Tooltip title={view.view_name_local}>
|
|
|
+ <div style={{
|
|
|
+ overflow: 'hidden',
|
|
|
+ textOverflow: 'ellipsis',
|
|
|
+ whiteSpace: 'nowrap'
|
|
|
+ }}>{view.view_name_local}</div>
|
|
|
+ </Tooltip>
|
|
|
{/* 可根据需要展示更多字段 */}
|
|
|
</Card>
|
|
|
</Col>
|