Skip to content

Commit

Permalink
feat(time-comparison-table): change "Display Columns" Text for an Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lilykuang committed Apr 23, 2024
1 parent 608f47e commit 1677b54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,7 @@ export default typedMemo(function DataTable<D extends object>({
) : null}
</div>
{searchInput ? (
<div
className={
renderTimeComparisonDropdown ? 'col-sm-5' : 'col-sm-6'
}
>
<div className="col-sm-6">
<GlobalFilter<D>
searchInput={
typeof searchInput === 'boolean' ? undefined : searchInput
Expand All @@ -396,7 +392,10 @@ export default typedMemo(function DataTable<D extends object>({
</div>
) : null}
{renderTimeComparisonDropdown ? (
<div className="col-sm-2" style={{ float: 'right' }}>
<div
className="col-sm-1"
style={{ float: 'right', marginTop: '6px' }}
>
{renderTimeComparisonDropdown()}
</div>
) : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
DownOutlined,
MinusCircleOutlined,
PlusCircleOutlined,
TableOutlined,
} from '@ant-design/icons';

import { isEmpty } from 'lodash';
Expand Down Expand Up @@ -578,7 +579,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
trigger={['click']}
>
<span>
{t('Display columns')} <DownOutlined />
<TableOutlined /> <DownOutlined />
</span>
</Dropdown>
);
Expand Down

0 comments on commit 1677b54

Please sign in to comment.