Skip to content

Commit f84bf48

Browse files
committed
Misc fixes
1 parent 714a736 commit f84bf48

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

packages/ra-ui-materialui/src/input/InPlaceEditor/InPlaceEditor.Card.stories.tsx

+14-6
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export const Complex = () => {
7676
},
7777
],
7878
},
79-
process.env.NODE_ENV !== 'test'
79+
process.env.NODE_ENV !== 'test',
80+
500
8081
);
8182
return (
8283
<Wrapper dataProvider={dataProvider}>
@@ -156,7 +157,7 @@ export const Complex = () => {
156157
<Box
157158
sx={{
158159
display: 'flex',
159-
alignItems: 'top',
160+
alignItems: 'center',
160161
gap: 1,
161162
}}
162163
>
@@ -188,7 +189,7 @@ export const Complex = () => {
188189
<Box
189190
sx={{
190191
display: 'flex',
191-
alignItems: 'top',
192+
alignItems: 'center',
192193
gap: 1,
193194
}}
194195
>
@@ -220,7 +221,7 @@ export const Complex = () => {
220221
<Box
221222
sx={{
222223
display: 'flex',
223-
alignItems: 'top',
224+
alignItems: 'center',
224225
gap: 1,
225226
}}
226227
>
@@ -258,6 +259,9 @@ export const Complex = () => {
258259
'& .MuiInput-root': {
259260
marginTop: 0,
260261
},
262+
'& .MuiSelect-select': {
263+
textAlign: 'right',
264+
},
261265
}}
262266
/>
263267
}
@@ -277,7 +281,8 @@ export const Complex = () => {
277281
}
278282
sx={{
279283
display: 'block',
280-
marginBottom: '5px',
284+
marginBottom: '3px',
285+
marginTop: '2px',
281286
}}
282287
/>
283288
</InPlaceEditor>
@@ -293,7 +298,7 @@ export const Complex = () => {
293298
<Box
294299
sx={{
295300
display: 'flex',
296-
alignItems: 'top',
301+
alignItems: 'center',
297302
gap: 1,
298303
}}
299304
>
@@ -329,6 +334,9 @@ export const Complex = () => {
329334
'& .MuiInput-root': {
330335
marginTop: 0,
331336
},
337+
'& .MuiSelect-select': {
338+
textAlign: 'right',
339+
},
332340
}}
333341
/>
334342
}

packages/ra-ui-materialui/src/input/InPlaceEditor/InPlaceEditor.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ export const InPlaceEditor = (props: InPlaceEditorProps) => {
152152
dispatch({ type: 'cancel' });
153153
};
154154
const handleBlur = (event: React.FocusEvent) => {
155-
console.log('here1');
156155
if (event.relatedTarget) {
157-
console.log('here2');
158156
return;
159157
}
160158
if (cancelOnBlur) {

0 commit comments

Comments
 (0)