Skip to content

Commit cc07c9c

Browse files
authored
fix(ui2): align OperationDot (#103819)
| before | after | |--------|--------| | <img width="488" height="579" alt="Screenshot 2025-11-21 at 17 24 16" src="https://github.com/user-attachments/assets/fbe0d6f0-3c1e-46c1-865d-93f55c46e8e6" /> | <img width="439" height="585" alt="Screenshot 2025-11-21 at 17 23 54" src="https://github.com/user-attachments/assets/c6708bca-117d-4a06-bfab-e79634819f41" /> | | <img width="398" height="579" alt="Screenshot 2025-11-21 at 17 24 34" src="https://github.com/user-attachments/assets/7d6c3c29-743a-4fa2-8377-474a2c9a28d2" /> | <img width="451" height="576" alt="Screenshot 2025-11-21 at 17 23 49" src="https://github.com/user-attachments/assets/281f72c8-9259-419e-bcf5-52c1c9700acd" /> |
1 parent e89220b commit cc07c9c

File tree

1 file changed

+17
-9
lines changed
  • static/app/views/performance/transactionSummary

1 file changed

+17
-9
lines changed

static/app/views/performance/transactionSummary/filter.tsx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import type {Theme} from '@emotion/react';
22
import {useTheme} from '@emotion/react';
3-
import styled from '@emotion/styled';
43
import type {Location} from 'history';
54

5+
import {Container} from '@sentry/scraps/layout';
6+
67
import GuideAnchor from 'sentry/components/assistant/guideAnchor';
78
import {CompactSelect} from 'sentry/components/core/compactSelect';
89
import {pickBarColor} from 'sentry/components/performance/waterfall/utils';
910
import {IconFilter} from 'sentry/icons';
1011
import {t} from 'sentry/locale';
11-
import {space} from 'sentry/styles/space';
1212
import type {OrganizationSummary} from 'sentry/types/organization';
1313
import {SpanOpBreakdown} from 'sentry/utils/fields';
1414
import {decodeScalar} from 'sentry/utils/queryString';
15+
import {isChonkTheme} from 'sentry/utils/theme/withChonk';
1516

1617
import {decodeHistogramZoom} from './transactionOverview/latencyChart/utils';
1718

@@ -79,13 +80,20 @@ function Filter(props: Props) {
7980
);
8081
}
8182

82-
const OperationDot = styled('div')<{backgroundColor: string}>`
83-
display: block;
84-
width: ${space(1)};
85-
height: ${space(1)};
86-
border-radius: 100%;
87-
background-color: ${p => p.backgroundColor};
88-
`;
83+
function OperationDot({backgroundColor}: {backgroundColor: string}) {
84+
const theme = useTheme();
85+
return (
86+
<Container
87+
width={theme.space.md}
88+
height={theme.space.md}
89+
alignSelf="center"
90+
style={{
91+
borderRadius: isChonkTheme(theme) ? theme.radius.full : '100%',
92+
backgroundColor,
93+
}}
94+
/>
95+
);
96+
}
8997

9098
export function filterToField(option: SpanOperationBreakdownFilter) {
9199
switch (option) {

0 commit comments

Comments
 (0)