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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Payment blocks: Fix cover block alignments on free sites
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ const withUpgradeBanner = createHigherOrderComponent(
}, [ setAttributes, hasParentBanner ] );

const blockProps = useBlockProps();
// Fix for width of cover block because otherwise the div defaults to content-size as max width
const cssFixForCoverBlock = { 'max-width': 'unset' };

return (
<PaidBlockProvider
onBannerVisibilityChange={ setIsVisible }
hasParentBanner={ isBannerVisible }
>
<div ref={ blockProps.ref }>
<div ref={ blockProps.ref } style={ cssFixForCoverBlock }>
<UpgradePlanBanner
className={ `is-${ name.replace( /\//, '-' ) }-paid-block` }
title={ null }
Expand Down