ndiego / block-visibility

Conditional visibility controls for all WordPress blocks.
https://www.blockvisibilitywp.com
GNU General Public License v2.0
123 stars 10 forks source link

Try dynamically moving panel to styles when there are no settings. #76

Open ndiego opened 1 year ago

ndiego commented 1 year ago

Fixes: #75

This currently is not working perfectly. Sometimes the Visibility panel is "counted" when checking for existing settings panels, and other times it's not.

When a block has no settings, the Visibility panel causes the Settings tab to appear. This is not ideal. The panel should behave like the Advanced panel. When there are no settings, the panel should be moved to the Styles tab.