File tree 2 files changed +14
-8
lines changed
packages/ra-ui-materialui/src/input/InPlaceEditor
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ export const Complex = () => {
76
76
} ,
77
77
] ,
78
78
} ,
79
- process . env . NODE_ENV !== 'test'
79
+ process . env . NODE_ENV !== 'test' ,
80
+ 500
80
81
) ;
81
82
return (
82
83
< Wrapper dataProvider = { dataProvider } >
@@ -156,7 +157,7 @@ export const Complex = () => {
156
157
< Box
157
158
sx = { {
158
159
display : 'flex' ,
159
- alignItems : 'top ' ,
160
+ alignItems : 'center ' ,
160
161
gap : 1 ,
161
162
} }
162
163
>
@@ -188,7 +189,7 @@ export const Complex = () => {
188
189
< Box
189
190
sx = { {
190
191
display : 'flex' ,
191
- alignItems : 'top ' ,
192
+ alignItems : 'center ' ,
192
193
gap : 1 ,
193
194
} }
194
195
>
@@ -220,7 +221,7 @@ export const Complex = () => {
220
221
< Box
221
222
sx = { {
222
223
display : 'flex' ,
223
- alignItems : 'top ' ,
224
+ alignItems : 'center ' ,
224
225
gap : 1 ,
225
226
} }
226
227
>
@@ -258,6 +259,9 @@ export const Complex = () => {
258
259
'& .MuiInput-root' : {
259
260
marginTop : 0 ,
260
261
} ,
262
+ '& .MuiSelect-select' : {
263
+ textAlign : 'right' ,
264
+ } ,
261
265
} }
262
266
/>
263
267
}
@@ -277,7 +281,8 @@ export const Complex = () => {
277
281
}
278
282
sx = { {
279
283
display : 'block' ,
280
- marginBottom : '5px' ,
284
+ marginBottom : '3px' ,
285
+ marginTop : '2px' ,
281
286
} }
282
287
/>
283
288
</ InPlaceEditor >
@@ -293,7 +298,7 @@ export const Complex = () => {
293
298
< Box
294
299
sx = { {
295
300
display : 'flex' ,
296
- alignItems : 'top ' ,
301
+ alignItems : 'center ' ,
297
302
gap : 1 ,
298
303
} }
299
304
>
@@ -329,6 +334,9 @@ export const Complex = () => {
329
334
'& .MuiInput-root' : {
330
335
marginTop : 0 ,
331
336
} ,
337
+ '& .MuiSelect-select' : {
338
+ textAlign : 'right' ,
339
+ } ,
332
340
} }
333
341
/>
334
342
}
Original file line number Diff line number Diff line change @@ -152,9 +152,7 @@ export const InPlaceEditor = (props: InPlaceEditorProps) => {
152
152
dispatch ( { type : 'cancel' } ) ;
153
153
} ;
154
154
const handleBlur = ( event : React . FocusEvent ) => {
155
- console . log ( 'here1' ) ;
156
155
if ( event . relatedTarget ) {
157
- console . log ( 'here2' ) ;
158
156
return ;
159
157
}
160
158
if ( cancelOnBlur ) {
You can’t perform that action at this time.
0 commit comments