alan-turing-institute / AssurancePlatform

Project to facilitate creation of Assurance Cases
MIT License
17 stars 6 forks source link

[BUG] Inconsistent spacing for child elements #488

Open chrisdburr opened 2 weeks ago

chrisdburr commented 2 weeks ago

Issue

The spacing between elements is not well-aligned.

Screenshot 2024-06-19 at 09 46 48

As you can see in this example, P7 has three children:

P7.1 is not located underneath its parent element.

Desired Behaviour

The elements should be grouped together with their siblings. There are probably several layout options to consider here. I don't have strong preferences on whether they are, say, centrally clustered or whether the first element is located directly underneath its parent and then all siblings expand to the right.

I appreciate this will also require consideration of spacing for the parents.

chrisdburr commented 2 weeks ago

https://github.com/user-attachments/files/15898524/Explainability.Pattern-2024-5-13T14-48-3.json

RichGriff commented 2 weeks ago

@chrisdburr this has something to do with the layout library that is being used - we will need to investigate and possibly look at another solution for the layout stuff.