style: table header text-overflow
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import AutoTooltip from '@/components/auto-tooltip';
|
||||||
import { CaretDownOutlined, CaretUpOutlined } from '@ant-design/icons';
|
import { CaretDownOutlined, CaretUpOutlined } from '@ant-design/icons';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -40,7 +41,9 @@ const TableHeader: React.FC<TableHeaderProps> = (props) => {
|
|||||||
>
|
>
|
||||||
{sorter ? (
|
{sorter ? (
|
||||||
<span className="sorter-header" onClick={handleOnSort}>
|
<span className="sorter-header" onClick={handleOnSort}>
|
||||||
<span className="table-header-cell">{title}</span>
|
<AutoTooltip ghost>
|
||||||
|
<span className="table-header-cell">{title}</span>
|
||||||
|
</AutoTooltip>
|
||||||
<span className="sorter">
|
<span className="sorter">
|
||||||
<CaretUpOutlined
|
<CaretUpOutlined
|
||||||
className={classNames('sorter-up', {
|
className={classNames('sorter-up', {
|
||||||
@@ -55,7 +58,9 @@ const TableHeader: React.FC<TableHeaderProps> = (props) => {
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<div className="table-header-cell">{title}</div>
|
<AutoTooltip ghost>
|
||||||
|
<span className="table-header-cell">{title}</span>
|
||||||
|
</AutoTooltip>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -282,6 +282,7 @@ const useFilesColumns = (props: {
|
|||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'resources.worker' }),
|
title: intl.formatMessage({ id: 'resources.worker' }),
|
||||||
dataIndex: 'worker_name',
|
dataIndex: 'worker_name',
|
||||||
|
width: '18%',
|
||||||
ellipsis: {
|
ellipsis: {
|
||||||
showTitle: false
|
showTitle: false
|
||||||
},
|
},
|
||||||
@@ -296,7 +297,7 @@ const useFilesColumns = (props: {
|
|||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'common.table.status' }),
|
title: intl.formatMessage({ id: 'common.table.status' }),
|
||||||
dataIndex: 'state',
|
dataIndex: 'state',
|
||||||
width: 132,
|
width: 160,
|
||||||
render: (text: string, record: ListItem) => {
|
render: (text: string, record: ListItem) => {
|
||||||
return <InstanceStatusTag data={record} />;
|
return <InstanceStatusTag data={record} />;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user