Opened 18 months ago
Last modified 3 months ago
#58500 assigned defect (bug)
Twenty Twenty: Separator block's Default style is wider than Wide Line style in editor
Reported by: | nidhidhandhukiya | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 6.2.2 |
Component: | Bundled Theme | Keywords: | has-patch needs-testing |
Focuses: | css | Cc: |
Description
Steps to reproduce the issue.
- Activate Twenty Twenty theme.
- Take separator block.
- Choose wide-width and check that editor and front both side.
In front side default and wide width working as expected but in editor side it not works proper.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/xLbqrymSPhRf1kPpSw7B
Attachments (5)
Change History (11)
#1
@
18 months ago
- Focuses css added
- Summary changed from Twenty Twenty theme separator block is having issue in editor with default and wide-width layout. to Twenty Twenty: Separator block's Default style is wider than Wide Line style in editor
@
18 months ago
With the patch in the editor, the Default style lines up with the margin of a paragraph block, and the Wide Line separator gets closer to the edge (than it does on the front).
@
18 months ago
On smaller screens, the front end shows both the Default and Wide Line separators aligned with the margin of a paragraph block.
@
18 months ago
With the patch, the editor also shows both the Default and Wide Line separators aligned with the margin of a paragraph block.
#2
@
18 months ago
- Keywords has-patch added
The Default style's max-width
was necessary with WordPress 5.3 to override the 100px
size from the editor. That is not necessary anymore, and the hr
element is no longer inside a div
to hold it to the standard .wp-block
width of 610px
. I added 610px
as the max-width
for this style of the Separator block.
The Wide Line style is not quite 100% on the front end (100vw - 8rem)
, but I used 100%
in the editor for both width
and max-width
so it would not be narrower than the Default style.
On larger screens, the Default style lines up with the margin of a paragraph block, and the Wide Line separator approaches the edge of the window on the front end.