The requested snap to grid option has been implemented in this week’s Dragonflight Beta build.

When you enter Edit Mode and enable the Grid and Snap options, you can snap the individual UI elements to the Grid. The new UI also lets you customize grid spacing.

Blizzard has completely overhauled the User Interface and players will get the chance to see it for the first time in the Dragonflight pre-patch.