fix(ui): rails count the obstacles beside those across the middle, and read them as before when neither side has room

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-18 22:51:42 -08:00
1 parent feedd88614
commit 98a100ed7e
6 files changed
+146 -50

No files matched your search

+1 -1
View File
@@ -1010,7 +1010,7 @@ test('an expanded Cockpit left panel stays above Contact, HUD, and attribution',
assert.ok(leftLayout, 'left accordion layout pass is missing');
assert.match(
leftLayout,
/\} else \{\s*\n\s*bottomObstacles\.push\(\{ top: rect\.top \}\);\s*\n\s*\}\s*\n\s*\}/,
/rect\.top >= baseTop\) \{\s*\n\s*bottomObstacles\.push\(\{ top: rect\.top \}\);/,
'every rendered lower-lane obstacle must constrain the panel corridor',
);
assert.match(