Skip to content

Commit

Permalink
[not verified] Eventbrite and OpenTable Blocks: Fix block preview siz…
Browse files Browse the repository at this point in the history
…ing with… (#14553)

* Eventbrite and OpenTable Blocks: Fix block preview sizing with Gutenberg
7.3

* Adds comment for explanation
  • Loading branch information
creativecoder authored and jeherve committed Feb 10, 2020
1 parent acaf378 commit c90af25
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion extensions/blocks/eventbrite/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
}
}

.block-editor-block-preview__content [data-type='jetpack/eventbrite'] div[data-block] {
// Display "table" is used because the button container should only wrap the content and not take the full width.
// Both selector rules needed because the block wrapper used in Gutenberg was removed in v7.3
// @link https://github.com/WordPress/gutenberg/pull/19593
.block-editor-block-preview__content [data-type='jetpack/eventbrite'] [data-block],
.block-editor-block-preview__content [data-type='jetpack/eventbrite'][data-block] {
display: table;
}

Expand Down
6 changes: 5 additions & 1 deletion extensions/blocks/opentable/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
}
}

.block-editor-block-preview__content [data-type='jetpack/opentable'] div[data-block] {
// Display "table" is used because the preview container should only wrap the content and not take the full width.
// Both selector rules needed because the block wrapper used in Gutenberg was removed in v7.3
// @link https://github.com/WordPress/gutenberg/pull/19593
.block-editor-block-preview__content [data-type='jetpack/opentable'] [data-block],
.block-editor-block-preview__content [data-type='jetpack/opentable'][data-block] {
display: table;
}

0 comments on commit c90af25

Please sign in to comment.