From 0ab3e774e824562d69b02650171233f8d17e6431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Vivet?= Date: Fri, 5 Jul 2024 14:34:58 +0200 Subject: [PATCH 1/3] Update CompactPropertiesSchema.js --- .../CompactInstancePropertiesEditor/CompactPropertiesSchema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js b/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js index e7be37c90156..cc7073f02ff9 100644 --- a/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js +++ b/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js @@ -523,7 +523,6 @@ export const makeSchema = ({ removeSpacers: true, children: getXAndYFields({ i18n }), }, - getZOrderField({ i18n }), { name: 'Size', type: 'row', @@ -562,6 +561,7 @@ export const makeSchema = ({ }, ], }, + getZOrderField({ i18n }), getLayerField({ i18n, layout }), { name: 'Rotation', From 48986d951f516c5be5dc6564638840cfd25bb558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Vivet?= Date: Fri, 5 Jul 2024 15:13:35 +0200 Subject: [PATCH 2/3] Update CompactPropertiesSchema.js --- .../CompactPropertiesSchema.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js b/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js index cc7073f02ff9..b5511fb94aff 100644 --- a/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js +++ b/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js @@ -507,9 +507,17 @@ export const makeSchema = ({ title: i18n._(t`Rotation`), preventWrap: true, removeSpacers: true, - children: getRotationXAndRotationYFields({ i18n }), + children: [], + }, + { + children: [ + getRotationZField({ i18n }), + { + type: 'row', + children: getRotationXAndRotationYFields({ i18n }), + }, + ], }, - getRotationZField({ i18n }), ]; } From 22330912e4e81525843da8cd9be8b51a7a868cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Vivet?= Date: Mon, 8 Jul 2024 16:03:34 +0200 Subject: [PATCH 3/3] prettier --- .../CompactPropertiesSchema.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js b/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js index b5511fb94aff..136782142acb 100644 --- a/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js +++ b/newIDE/app/src/InstancesEditor/CompactInstancePropertiesEditor/CompactPropertiesSchema.js @@ -504,18 +504,12 @@ export const makeSchema = ({ { name: 'Rotation', type: 'row', - title: i18n._(t`Rotation`), preventWrap: true, removeSpacers: true, - children: [], - }, - { + title: i18n._(t`Rotation`), children: [ getRotationZField({ i18n }), - { - type: 'row', - children: getRotationXAndRotationYFields({ i18n }), - }, + ...getRotationXAndRotationYFields({ i18n }), ], }, ];