feat: finalize corrected-route planning and Rerun recording review
This commit is contained in:
@@ -43,8 +43,7 @@ export function initialObservationWindowRect(
|
||||
const row = Math.floor(index / columns);
|
||||
const column = index % columns;
|
||||
const rowItemCount = Math.min(columns, Math.max(1, count - row * columns));
|
||||
const rowWidth = rowItemCount * width + Math.max(0, rowItemCount - 1) * WINDOW_GAP;
|
||||
const rowStart = Math.max(0, bounds.width - WINDOW_INSET - rowWidth);
|
||||
const rowStart = Math.min(WINDOW_INSET, Math.max(0, bounds.width - width));
|
||||
|
||||
return {
|
||||
x: rowStart + Math.min(column, rowItemCount - 1) * (width + WINDOW_GAP),
|
||||
|
||||
Reference in New Issue
Block a user