File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
static/app/components/forms/field Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
import styled from '@emotion/styled' ;
2
2
3
+ import space from 'sentry/styles/space' ;
4
+
3
5
import { FieldGroupProps } from './types' ;
4
6
5
7
type FieldControlStateProps = Pick < FieldGroupProps , 'flexibleControlStateSize' > ;
6
8
7
9
const FieldControlState = styled ( 'div' ) < FieldControlStateProps > `
8
10
display: flex;
9
11
position: relative;
10
- ${ p => ! p . flexibleControlStateSize && `width: 36px ` } ;
12
+ ${ p => ! p . flexibleControlStateSize && `width: 24px ` } ;
11
13
flex-shrink: 0;
12
- justify-content: center ;
14
+ justify-content: end ;
13
15
align-items: center;
16
+ margin-left: ${ space ( 0.5 ) } ;
14
17
` ;
15
18
16
19
export default FieldControlState ;
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ const inlineStyle = (p: FieldWrapperProps) =>
23
23
const getPadding = ( p : FieldWrapperProps ) =>
24
24
p . stacked && ! p . inline
25
25
? css `
26
- padding : 0 ${ p . hasControlState ? 0 : space ( 2 ) } ${ space ( 2 ) } 0 ;
26
+ padding : 0 ${ space ( 1 ) } ${ space ( 2 ) } 0 ;
27
27
`
28
28
: css `
29
- padding : ${ space ( 2 ) } ${ p . hasControlState ? 0 : space ( 2 ) } ${ space ( 2 ) } ${ space ( 2 ) } ;
29
+ padding : ${ space ( 2 ) } ${ space ( 1 ) } ${ space ( 2 ) } ${ space ( 2 ) } ;
30
30
` ;
31
31
32
32
const FieldWrapper = styled ( 'div' ) < FieldWrapperProps > `
You can’t perform that action at this time.
0 commit comments