Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions extensions/blocks/opentable/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export default function OpenTableEdit( { attributes, setAttributes, className, c
const editClasses = classnames( className, {
[ `${ className }-theme-${ style }` ]: ! isEmpty( rid ) && styleValues.includes( style ),
'is-multi': 'multi' === getTypeAndTheme( style )[ 0 ],
[ `align${ align }` ]: align,
} );

return (
Expand Down
18 changes: 18 additions & 0 deletions extensions/blocks/opentable/view.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
.wp-block-jetpack-opentable {

&.aligncenter iframe {
margin: 0 auto;
}

&-theme-standard {
height: 301px;

&.is-multi {
height: 361px;
}

&.aligncenter iframe {
width: 224px !important;
}
}

&-theme-tall {
Expand All @@ -14,14 +22,24 @@
&.is-multi {
height: 550px;
}

&.aligncenter iframe {
width: 288px !important;
}
}

&-theme-wide {
height: 150px;
&.aligncenter iframe {
width: 840px !important;
}
}

&-theme-button {
height: 113px;
&.aligncenter iframe {
width: 210px !important;
}
}

.ot-dtp-picker {
Expand Down