Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

- Device Preview: Keep tablet and mobile iframe widths inside their responsive breakpoints so media queries remain accurate at browser zoom levels.
- Document tools: Fix icon button focus styles to use the design system `outset-ring__focus` mixin ([#81115](https://github.com/WordPress/gutenberg/pull/81115)).
- Device Preview: Center the editor canvas with the canvas container's own flex alignment rather than the canvas's auto margins, which were conditional on the resize handles being active. Switching from the mobile or tablet preview back to desktop no longer expands the canvas from the left edge ([#81484](https://github.com/WordPress/gutenberg/pull/81484)).

## 14.52.0 (2026-07-29)

Expand Down
7 changes: 6 additions & 1 deletion packages/editor/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@
background-color: transparent;
}

// Centralize the editor horizontally (flex-direction is column).
// Centralize the editor horizontally.
align-items: center;
// The canvas is the single flex item, stacked on the block axis so that
// `align-items: center` below centers it horizontally. Without this the
// container defaults to `row`, where `align-items` centers vertically
// instead and horizontal centering falls to the canvas's own auto margins.
flex-direction: column;

@media (prefers-reduced-motion: no-preference) {
transition: padding 0.2s ease-out;
Expand Down
Loading