Repository navigation
Paid/Premium blocks: Fix cover block alignments on free sites - #35028
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Just answering this specific question, from my past job, I've found that using |
Just brainstorming (haven't tried yet), but what if we move the |
I did a test in #35030, and it works, but then the upgrade nudge is not visible because the block toolbar overlaps it.
The best option I have found is moving it over the block so it's not overlapped by the toolbar, which works for the Cover block. We have to check how a change in this code affects other paid blocks. I think they are called Premium blocks. See PCYsg-sZ6-p2
The block toolbar is automatically positioned and that makes it hard to create room to position the nudge. I think we could merge the CSS change on this PR to fix the issue, and then follow up with another to remove the div from all premium blocks, making sure it looks good. WDYT? |
fushar
left a comment
There was a problem hiding this comment.
I think we could merge the CSS change on this PR to fix the issue, and then follow up with another to remove the div from all premium blocks, making sure it looks good. WDYT?
Makes sense to me!
e097282 to
dfbc566
Compare
|
Thanks, @miksansegundo, for fixing the bug. Much appreciated. |


Fixes Automattic/wp-calypso#71882 Automattic/wp-calypso#79025
Related #27909
Proposed changes:
max-widthon thedivwrapper introduced on free sites to show the upgrade nudge.The
divwas added in #27909. This fix doesn't allow the editor to apply the content sizemax-widthon it because it's not contentSee the CSS that is overwritten:
Note
Other options to solve this issue can be:
unsetformax-width?divelement?Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
/themes, search for "Blockstar", open the theme detail, and click "Preview & Customize"