Files
craft-libs/crates/ui
dotCooCoo 9397987668 ui-patterns: the command palette keeps its top and field in place as the query changes its rows
The dialog face of CommandPalette was a modal centered on both axes and
sized to its rows, so its search field moved up and down with each query.
The box is now centered across the window with its top 15% of the window's
height down, and only its bottom edge moves as the rows come and go.

- ui-contract: FloatPlace::top_centered(share) places a float centered
  across its bounds with its top at that share of their height. Its room is
  held to the height that leaves the same share below it, measured in the
  overlay's own bounds, so a body as tall as it may grow (in an embedded
  shell, whose region lifts the modal's cap) does not push the top up.
- ui-patterns: the palette's dialog face uses it, at the share that matches
  its 70% height cap.
- Tests: the palette's top and field stay put between a 12-row and a 1-row
  query; in an embedded shell a 50-row list leaves the top in place; a
  bounded float keeps its top for a short and a tall scrolling body.
2026-11-28 23:01:52 -08:00
..
2026-11-19 09:25:07 +01:00