Skip to content

Commit 82efb48

Browse files
committed
ref(aci): simplify styles
1 parent 92ed66c commit 82efb48

File tree

1 file changed

+4
-4
lines changed
  • static/app/views/detectors/components/forms

1 file changed

+4
-4
lines changed

static/app/views/detectors/components/forms/metric.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function DetectSection() {
141141
description={t('Sentry will check the following query:')}
142142
>
143143
<FirstRow>
144-
<DetectColumn style={{maxWidth: 500}} gap={space(1)}>
144+
<DetectColumn>
145145
<VisualizeField
146146
placeholder={t('Metric')}
147147
flexibleControlStateSize
@@ -304,9 +304,9 @@ const FirstRow = styled('div')`
304304
border-bottom: 1px solid ${p => p.theme.border};
305305
`;
306306

307-
const DetectColumn = styled(Flex)`
308-
flex-grow: 1;
309-
`;
307+
function DetectColumn(props: React.ComponentProps<typeof Flex>) {
308+
return <Flex flex={1} gap={space(1)} {...props} />;
309+
}
310310

311311
const StyledSelectField = styled(SelectField)`
312312
width: 180px;

0 commit comments

Comments
 (0)