@@ -8,15 +8,19 @@ import type {useMetricTimeseries} from 'sentry/views/explore/metrics/hooks/useMe
88import type { TableOrientation } from 'sentry/views/explore/metrics/hooks/useOrientationControl' ;
99import { MetricsGraph } from 'sentry/views/explore/metrics/metricGraph' ;
1010import MetricInfoTabs from 'sentry/views/explore/metrics/metricInfoTabs' ;
11- import { SAMPLES_PANEL_MIN_WIDTH } from 'sentry/views/explore/metrics/metricInfoTabs/metricsSamplesTable' ;
11+ import {
12+ SAMPLES_PANEL_MIN_WIDTH ,
13+ WIDTH_WITH_TELEMETRY_ICONS_VISIBLE ,
14+ } from 'sentry/views/explore/metrics/metricInfoTabs/metricsSamplesTable' ;
1215import { HideContentButton } from 'sentry/views/explore/metrics/metricPanel/hideContentButton' ;
1316import { PanelPositionSelector } from 'sentry/views/explore/metrics/metricPanel/panelPositionSelector' ;
1417import type { TraceMetric } from 'sentry/views/explore/metrics/metricQuery' ;
1518
1619const MIN_LEFT_WIDTH = 400 ;
1720
1821// Defined by the size of the expected samples tab component
19- const PADDING_SIZE = 16 ;
22+ const PADDING_SIZE = 20 ;
23+ const DIVIDER_WIDTH = 16 ;
2024const MIN_RIGHT_WIDTH = SAMPLES_PANEL_MIN_WIDTH + PADDING_SIZE ;
2125
2226export function SideBySideOrientation ( {
@@ -42,11 +46,11 @@ export function SideBySideOrientation({
4246 const { width} = useDimensions ( { elementRef : measureRef } ) ;
4347
4448 const hasSize = width > 0 ;
45- // Default split is 65% of the available width, but not less than MIN_LEFT_WIDTH
46- // and at most the maximum size allowed for the left panel (i.e. width - MIN_RIGHT_WIDTH)
49+ // Default split is 65% of the available width but not less than MIN_LEFT_WIDTH
50+ // while also accommodating the desired right panel width to show all of the telemetry icons.
4751 const defaultSplit = Math . min (
4852 Math . max ( width * 0.65 , MIN_LEFT_WIDTH ) ,
49- width - MIN_RIGHT_WIDTH
53+ width - ( WIDTH_WITH_TELEMETRY_ICONS_VISIBLE + PADDING_SIZE + DIVIDER_WIDTH )
5054 ) ;
5155
5256 const additionalActions = (
0 commit comments