Fix spouse overlap, reset defaults to 3 gen, remove sliders

- Add collision resolution pass after Y-snapping: sweeps each
  generation row left-to-right pushing overlapping cards apart,
  then re-centers the row to prevent drift
- Reset default generations to 3 (up from 4) to avoid layout issues
- Remove generation sliders from chart page for simplicity
- Add sync.sh for deployment to server
This commit is contained in:
2026-03-14 20:30:38 +01:00
parent 04ff9f4711
commit 272ee41df6
6 changed files with 72 additions and 93 deletions
+4 -4
View File
@@ -42,10 +42,10 @@ class Module extends AbstractModule implements ModuleChartInterface, ModuleCusto
public const ROUTE_NAME = 'full-diagram';
public const ROUTE_URL = '/tree/{tree}/full-diagram/{xref}';
private const DEFAULT_ANCESTOR_GENERATIONS = 4;
private const DEFAULT_DESCENDANT_GENERATIONS = 4;
private const BLOCK_DEFAULT_ANCESTOR_GENS = 4;
private const BLOCK_DEFAULT_DESCENDANT_GENS = 4;
private const DEFAULT_ANCESTOR_GENERATIONS = 3;
private const DEFAULT_DESCENDANT_GENERATIONS = 3;
private const BLOCK_DEFAULT_ANCESTOR_GENS = 3;
private const BLOCK_DEFAULT_DESCENDANT_GENS = 3;
private const MINIMUM_GENERATIONS = 1;
private const MAXIMUM_GENERATIONS = 10;