Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTable: Move the CSS to make the block take only the space it needs #14672

Merged
merged 1 commit into from
Feb 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions extensions/blocks/opentable/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/

.wp-block-jetpack-opentable {
// needed so that the block preview doesn't have empty space
display: inline-block;
position: relative;

.components-base-control {
Expand Down Expand Up @@ -109,11 +111,3 @@
font-weight: bold;
}
}

// 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;
}