Skip to content

Fine-tune reflow algorithm for grid evenness #97

Description

@jonocodes

From #92

The grid reflow (ADR-0010) landed with a downward-scanning even-row preference that works well for common cases (8→4×2, 7→4+3, 6→3×2). There are edge cases that need more iteration:

Known issues

  • Phone portrait with 8 widgets at default cellSize (100px) yields 3 cols (3+3+2). The user wants 4×2, which requires lowering cellSize to ~80. Should the algorithm consider adding one column (upward) when it yields a perfect grid and the cell size stays reasonable?
  • 1-row layouts are treated as perfect by the scoring system even when the cells are tiny — the user prefers multi-row. Should 1-row be penalized unless cells exceed a minimum absolute size?
  • Content nudge (the secondary "Content nudge" slider in Settings) may need to be integrated differently now that cell size drives content size, not a separate band.

Ladle

  • S23 grid-area dimensions (747×251 landscape, 360×668 portrait) are available in Surface / device sizes for testing.

Relationship

Blocks nothing; blocked by #92.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageMaintainer needs to evaluate this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions