Skip to content

Commit

Permalink
Forms: Fix field widths and spacing in the editor (#41415)
Browse files Browse the repository at this point in the history
* Fix form field widths

* Update preview classname to target block element correctly

* Remove block preview styles

* changelog
  • Loading branch information
talldan authored Jan 30, 2025
1 parent 5885330 commit a2a02b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 4 additions & 0 deletions projects/packages/forms/changelog/fix-form-field-widths
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Forms: Fix field spacing and widths.
13 changes: 1 addition & 12 deletions projects/packages/forms/src/blocks/contact-form/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
}

.block-editor-inner-blocks > .block-editor-block-list__layout {
.block-editor-block-list__layout {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
Expand Down Expand Up @@ -577,17 +577,6 @@
}
}

// Overrides to make the preview look good
.block-editor-inserter__preview {
.jetpack-contact-form {
padding: 16px;

.block-editor-inner-blocks .block-editor-block-list__layout {
margin: 0;
}
}
}

// Make sure form settings dropdown looks good on older Gutenberg versions
.jetpack-contact-form__popover .components-popover__content {
min-width: 260px;
Expand Down
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-form-field-widths
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Forms: Fix field spacing and widths.

0 comments on commit a2a02b1

Please sign in to comment.