diff --git a/extensions/blocks/eventbrite/editor.scss b/extensions/blocks/eventbrite/editor.scss index b5aee8513e1b6..7b7840a9cdb5e 100644 --- a/extensions/blocks/eventbrite/editor.scss +++ b/extensions/blocks/eventbrite/editor.scss @@ -12,7 +12,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; } diff --git a/extensions/blocks/opentable/editor.scss b/extensions/blocks/opentable/editor.scss index 71209a951b459..5136ebc3e4f46 100644 --- a/extensions/blocks/opentable/editor.scss +++ b/extensions/blocks/opentable/editor.scss @@ -134,6 +134,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; }