Repository navigation
Commit c68bb45
Grid: Address rotation review items
- Merge `components/grid/rotation.ts` into `utils/rotation.ts`, and import
the rotation style helpers from there instead of the rotate hook module,
so grid data code no longer imports the hook and its controls.
- `GridTools` only keeps whether the previewed angle rotates the block, so
dragging the rotate handle no longer re-renders the grid tools and the
visualizer for every degree. The handle keeps the angle itself.
- The Rotation control in the block settings turns stacking off for a grid
stacked on mobile, like the rotate handle does, so an edit in the Mobile
state has a visible effect. While the grid is stacked, it shows 0, as
the stack shows the block unrotated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent d9764b7 commit c68bb45
14 files changed
Lines changed: 507 additions & 411 deletions
File tree
- packages/block-editor/src
- components/grid
- test
- hooks
- test
- utils
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments