mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 12:39:02 +08:00
fix: improve traces table ux by making the table scrollable (#6423)
* fix: improve traces table ux by making the table scrollable * chore: remove explicit scroll.x and modify the existing scroll.x from true to max-content * fix(Traces Explorer): make trace explorer card full-width when collapsed, resizable when expanded
This commit is contained in:
parent
9a1cd65b73
commit
b29359dee0
@ -154,7 +154,7 @@ function ListView({ isFilterApplied }: ListViewProps): JSX.Element {
|
||||
<ResizeTable
|
||||
tableLayout="fixed"
|
||||
pagination={false}
|
||||
scroll={{ x: true }}
|
||||
scroll={{ x: 'max-content' }}
|
||||
loading={isFetching}
|
||||
style={tableStyles}
|
||||
dataSource={transformedQueryTableData}
|
||||
|
@ -59,6 +59,9 @@
|
||||
|
||||
border-color: var(--bg-slate-400);
|
||||
}
|
||||
.trace-explorer.filters-expanded {
|
||||
width: calc(100% - 260px);
|
||||
}
|
||||
}
|
||||
|
||||
.lightMode {
|
||||
|
@ -5,6 +5,7 @@ import * as Sentry from '@sentry/react';
|
||||
import { Button, Card, Tabs, Tooltip } from 'antd';
|
||||
import logEvent from 'api/common/logEvent';
|
||||
import axios from 'axios';
|
||||
import cx from 'classnames';
|
||||
import ExplorerCard from 'components/ExplorerCard/ExplorerCard';
|
||||
import { LOCALSTORAGE } from 'constants/localStorage';
|
||||
import { AVAILABLE_EXPORT_PANEL_TYPES } from 'constants/panelTypes';
|
||||
@ -244,7 +245,11 @@ function TracesExplorer(): JSX.Element {
|
||||
<Card className="filter" hidden={!isOpen}>
|
||||
<Filter setOpen={setOpen} />
|
||||
</Card>
|
||||
<Card className="trace-explorer">
|
||||
<Card
|
||||
className={cx('trace-explorer', {
|
||||
'filters-expanded': isOpen,
|
||||
})}
|
||||
>
|
||||
<div className={`trace-explorer-header ${isOpen ? 'single-child' : ''}`}>
|
||||
{!isOpen && (
|
||||
<Tooltip title="Expand filters" placement="right">
|
||||
|
Loading…
x
Reference in New Issue
Block a user