|
@@ -1,7 +1,7 @@
|
|
import {browserHistory} from 'react-router';
|
|
import {browserHistory} from 'react-router';
|
|
import styled from '@emotion/styled';
|
|
import styled from '@emotion/styled';
|
|
|
|
|
|
-import SelectControl from 'sentry/components/forms/controls/selectControl';
|
|
|
|
|
|
+import {CompactSelect} from 'sentry/components/compactSelect';
|
|
import {t} from 'sentry/locale';
|
|
import {t} from 'sentry/locale';
|
|
import {space} from 'sentry/styles/space';
|
|
import {space} from 'sentry/styles/space';
|
|
import {NewQuery} from 'sentry/types';
|
|
import {NewQuery} from 'sentry/types';
|
|
@@ -69,8 +69,8 @@ export function SpanOpSelector({transaction, primaryRelease, secondaryRelease}:
|
|
];
|
|
];
|
|
|
|
|
|
return (
|
|
return (
|
|
- <StyledSelectControl
|
|
|
|
- inFieldLabel={t('Operation:')}
|
|
|
|
|
|
+ <StyledCompactSelect
|
|
|
|
+ triggerProps={{prefix: t('Operation'), size: 'xs'}}
|
|
value={value}
|
|
value={value}
|
|
options={options ?? []}
|
|
options={options ?? []}
|
|
onChange={newValue => {
|
|
onChange={newValue => {
|
|
@@ -86,7 +86,6 @@ export function SpanOpSelector({transaction, primaryRelease, secondaryRelease}:
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
-const StyledSelectControl = styled(SelectControl)`
|
|
|
|
|
|
+const StyledCompactSelect = styled(CompactSelect)`
|
|
margin-bottom: ${space(1)};
|
|
margin-bottom: ${space(1)};
|
|
- width: 180px;
|
|
|
|
`;
|
|
`;
|