Fix broken coming soon template in dataview (#49749)
* Set coming soon preview body aspect ratio to 1/1 to fix borken template * Add changelog * Update plugins/woocommerce/changelog/fix-broken-coming-soon-template Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com> --------- Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
This commit is contained in:
parent
1c23c5f2b4
commit
7f23702018
|
@ -25,6 +25,10 @@ export const generateStyles = ( color = '#bea0f2' ) => {
|
|||
body .is-layout-constrained > .alignwide {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.block-editor-block-preview__content-iframe body {
|
||||
/* Set ratio to 1:1 so height is always equal to width for the preview. */
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
.wp-container-core-group-is-layout-4.wp-container-core-group-is-layout-4 {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Set coming soon preview body aspect ratio to 1/1 to fix broken template
|
|
@ -86,6 +86,10 @@ body.custom-background {
|
|||
body .is-layout-constrained > .alignwide {
|
||||
margin: 0 auto;
|
||||
}
|
||||
.block-editor-block-preview__content-iframe body {
|
||||
/* Set ratio to 1:1 so height is always equal to width for the preview. */
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
.wp-container-core-group-is-layout-4.wp-container-core-group-is-layout-4 {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue