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