File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
packages/components/src/Form/Fields Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -148,19 +148,15 @@ const InputArea = styled.div``
148148const MessageArea = styled . div ``
149149
150150export const Field = styled ( FieldLayout ) `
151- height: fit-content;
152- width: ${ ( { width } ) => width || 'fit-content' } ;
153151 align-items: left;
154- justify-content: space-between;
155- margin-bottom: ${ ( { theme } ) => theme . space . xsmall } ;
156-
157152 display: grid;
158153 grid-template-areas: ${ ( { inline } ) =>
159154 inline
160155 ? '"label input detail" ". messages messages"'
161156 : '"label detail" "input input" "messages messages"' } ;
162- grid-template-columns: ${ ( { inline, labelWidth } ) =>
163- inline ? `${ labelWidth } 1fr` : undefined } ;
157+ height: fit-content;
158+ justify-content: space-between;
159+ width: ${ ( { width } ) => width || 'fit-content' } ;
164160
165161 ${ InputArea } {
166162 display: flex;
@@ -177,16 +173,16 @@ export const Field = styled(FieldLayout)`
177173 ${ ( { inline, theme } ) =>
178174 inline
179175 ? `
180- text-align: right ;
181- line-height: ${ inputHeight } ;
182- justify-self: end ;
183- height : ${ inputHeight } ;
184- padding-right: ${ theme . space . small } ;
185- `
176+ height: ${ inputHeight } ;
177+ justify-self: end ;
178+ line-height: ${ inputHeight } ;
179+ padding-right : ${ theme . space . small } ;
180+ width: 150px ;
181+ `
186182 : `
187183 padding-bottom: ${ theme . space . xsmall } ;
188184
189- ` }
185+ ` }
190186 }
191187
192188 ${ FieldDetail } {
You can’t perform that action at this time.
0 commit comments