From 592beb0fa75bf061de3f49deb9a3e7cd89611e3b Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 6 Mar 2026 11:28:07 +0100 Subject: [PATCH] fix(ui) : move add buttons below last element in structure editors Place "Ajouter" buttons after the items list instead of in the section header, so they always appear below the last added element. Co-Authored-By: Claude Opus 4.6 --- app/components/PieceModelStructureEditor.vue | 40 +++++------ app/components/StructureNodeEditor.vue | 70 ++++++++----------- .../machine/MachineComponentsCard.vue | 49 +++++++------ app/components/machine/MachinePiecesCard.vue | 49 +++++++------ .../machine/MachineProductsCard.vue | 25 ++++--- 5 files changed, 109 insertions(+), 124 deletions(-) diff --git a/app/components/PieceModelStructureEditor.vue b/app/components/PieceModelStructureEditor.vue index 18e4f92..5d3b891 100644 --- a/app/components/PieceModelStructureEditor.vue +++ b/app/components/PieceModelStructureEditor.vue @@ -1,19 +1,13 @@ diff --git a/app/components/StructureNodeEditor.vue b/app/components/StructureNodeEditor.vue index a9fdaa0..122ef38 100644 --- a/app/components/StructureNodeEditor.vue +++ b/app/components/StructureNodeEditor.vue @@ -70,15 +70,9 @@
-
-

- {{ isRoot ? 'Champs personnalisés du composant' : 'Champs personnalisés' }} -

- -
+

+ {{ isRoot ? 'Champs personnalisés du composant' : 'Champs personnalisés' }} +

Aucun champ n'a encore été défini.

@@ -155,18 +149,16 @@
+
-
-

- {{ isRoot ? 'Produits inclus par défaut' : 'Produits' }} -

- -
+

+ {{ isRoot ? 'Produits inclus par défaut' : 'Produits' }} +

Aucun produit défini.

@@ -228,18 +220,16 @@ +
-
-

- {{ isRoot ? 'Pièces incluses par défaut' : 'Pièces' }} -

- -
+

+ {{ isRoot ? 'Pièces incluses par défaut' : 'Pièces' }} +

Aucune pièce définie.

@@ -302,21 +292,14 @@ +
-
-

Sous-composants

- -
+

Sous-composants

Sélectionnez uniquement la famille de ce sous-composant ; il sera configuré via son propre modèle.

@@ -357,6 +340,15 @@ /> +
diff --git a/app/components/machine/MachineComponentsCard.vue b/app/components/machine/MachineComponentsCard.vue index eac3053..022901c 100644 --- a/app/components/machine/MachineComponentsCard.vue +++ b/app/components/machine/MachineComponentsCard.vue @@ -3,31 +3,21 @@

Composants

-
- - -
+
@@ -54,6 +44,15 @@ />
+ + diff --git a/app/components/machine/MachinePiecesCard.vue b/app/components/machine/MachinePiecesCard.vue index acc5b60..21e1f8a 100644 --- a/app/components/machine/MachinePiecesCard.vue +++ b/app/components/machine/MachinePiecesCard.vue @@ -3,31 +3,21 @@

Pièces de la machine

-
- - -
+
@@ -54,6 +44,15 @@ />
+ + diff --git a/app/components/machine/MachineProductsCard.vue b/app/components/machine/MachineProductsCard.vue index 25cabcd..01ab9e5 100644 --- a/app/components/machine/MachineProductsCard.vue +++ b/app/components/machine/MachineProductsCard.vue @@ -15,19 +15,9 @@ Produits sélectionnés directement pour cette machine.

-
- - - {{ products.length }} produit{{ products.length > 1 ? 's' : '' }} - -
+ + {{ products.length }} produit{{ products.length > 1 ? 's' : '' }} +
@@ -117,6 +107,15 @@

Aucun produit n'a été associé directement à cette machine.

+ +