Fix: trace details bugfixes (#9116)

* fix: make the trace details sidebar scrollable

* fix: fix the long value overflowing trace details attributes

* fix: fix the layout issues in trace details v2

* Revert "fix: make the trace details sidebar scrollable"

This reverts commit 469022ed6aa89f9cc5864fdd30bdd6096bb11870.

* fix: make the trace details sidebar scrollable

* fix: make the attribute value take 100% width

---------

Co-authored-by: Nityananda Gohain <nityanandagohain@gmail.com>
This commit is contained in:
Shaheer Kochai 2025-09-17 18:28:34 +04:30 committed by GitHub
parent 0626a89412
commit 24307b48ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 8 deletions

View File

@ -58,12 +58,16 @@
padding: 2px 8px;
align-items: center;
width: fit-content;
max-width: calc(100% - 120px); /* Reserve space for action buttons */
max-width: 100%;
gap: 8px;
border-radius: 50px;
border: 1px solid var(--bg-slate-400);
background: var(--bg-slate-500);
.copy-wrapper {
overflow: hidden;
}
.item-value {
color: var(--bg-vanilla-400);
font-family: Inter;

View File

@ -97,11 +97,13 @@ function Attributes(props: IAttributesProps): JSX.Element {
</div>
<div className="value-wrapper">
<Tooltip title={item.value}>
<div className="copy-wrapper">
<CopyClipboardHOC entityKey={item.value} textToCopy={item.value}>
<Typography.Text className="item-value" ellipsis>
{item.value}
</Typography.Text>{' '}
</Typography.Text>
</CopyClipboardHOC>
</div>
</Tooltip>
<AttributeActions
record={item}

View File

@ -3,7 +3,7 @@
flex-direction: column;
height: calc(100vh - 44px); //44px -> trace details top bar
border-left: 1px solid var(--bg-slate-400);
overflow-y: auto;
overflow-y: auto !important;
&:not(&-docked) {
min-width: 450px;
}

View File

@ -127,7 +127,11 @@ function TraceDetailsV2(): JSX.Element {
];
return (
<ResizablePanelGroup direction="horizontal" autoSaveId="trace-drawer">
<ResizablePanelGroup
direction="horizontal"
autoSaveId="trace-drawer"
className="trace-layout"
>
<ResizablePanel minSize={20} maxSize={80} className="trace-left-content">
<TraceMetadata
traceID={traceId}