mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 18:27:00 +01:00
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.