提交 366acd86 作者: 龚洪江

修复:话题显示问题

上级 ac1cd9f6
.forum-description{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
.dynamic-list{
.forum-description{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
.forum-topic{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
import SearchBox, { searchColumns } from '~/components/search-box';
import { Button, message, Modal, Table, Tag, Tooltip } from 'antd';
import { Button, message, Modal, Table, Tooltip } from 'antd';
import { ColumnsType } from 'antd/es/table';
import { useEffect, useState } from 'react';
import DynamicDetailModal from './components/dynamicDetailModal';
......@@ -47,7 +47,12 @@ const DynamicList = () => {
title: '话题',
align: 'center',
dataIndex: 'gambitName',
render: (text: string[]) => text?.map((v, index) => <Tag key={index}>{v}</Tag>),
ellipsis: true,
render: (text: string[]) => (
<Tooltip title={text.join(',')}>
<div className='forum-topic'>{text.join(',')}</div>
</Tooltip>
),
},
{
title: '作者(用户名称)',
......
......@@ -18,6 +18,7 @@ const TopicList = () => {
title: '名称',
align: 'center',
dataIndex: 'gambitName',
width: '20%',
},
{
title: '属性',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论