From b145b27536c3e691712beeea4c7593e1f51ff349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Qu=C3=A8ze?= Date: Thu, 6 Nov 2025 12:01:54 +0100 Subject: [PATCH] Hide track management UI in single track profiles. --- src/components/timeline/FullTimeline.tsx | 14 ++++++---- src/components/timeline/GlobalTrack.tsx | 27 +++++++++++-------- src/components/timeline/index.css | 13 ++++++--- .../__snapshots__/GlobalTrack.test.tsx.snap | 10 ------- .../__snapshots__/Timeline.test.tsx.snap | 10 ------- 5 files changed, 34 insertions(+), 40 deletions(-) diff --git a/src/components/timeline/FullTimeline.tsx b/src/components/timeline/FullTimeline.tsx index 32fa0629b2..35b0c38db2 100644 --- a/src/components/timeline/FullTimeline.tsx +++ b/src/components/timeline/FullTimeline.tsx @@ -155,10 +155,14 @@ class FullTimelineImpl extends React.PureComponent { <>
- + {hiddenTrackCount.total > 1 ? ( + + ) : ( +
+ )} { - + {hiddenTrackCount.total > 1 ? : null} ); } diff --git a/src/components/timeline/GlobalTrack.tsx b/src/components/timeline/GlobalTrack.tsx index e560a1433d..a8046f1368 100644 --- a/src/components/timeline/GlobalTrack.tsx +++ b/src/components/timeline/GlobalTrack.tsx @@ -70,6 +70,7 @@ type StateProps = { readonly selectedTab: TabSlug; readonly processesWithMemoryTrack: Set; readonly progressGraphData: ProgressGraphData[] | null; + readonly totalTrackCount: number; }; type DispatchProps = { @@ -243,6 +244,7 @@ class GlobalTrackComponent extends PureComponent { localTracks, pid, globalTrack, + totalTrackCount, } = this.props; if (isHidden) { @@ -290,17 +292,19 @@ class GlobalTrackComponent extends PureComponent {
) : null} - -
Process 0 -
Process 0 -
Process 0 -
Process 0 -