• Resolved Kovas

    (@zerocore)


    Hello,

    It’s kinda annoying when Block Visibility settings take more space than all the block settings combined πŸ™‚

    Is there a reason why it cannot be collapsed?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @zerocore,

    I chose to build the plugin without a collapsable panel since this is how all panels will soon work in WordPress Core.

    That said, you can make some modification in the plugin settings to simplify the editing experience.

    First, you can disable “default visibility controls”. Default controls display automatically in the Visibility panel. Second, you can disable any controls that you will never use.

    The screenshot below shows you how to modify these settings.

    When there are no default control, the Visibility panel will look like this:

    Let me know if I can answer any additional questions or be of further assistance.

    Best,
    Nick

    Thread Starter Kovas

    (@zerocore)

    Hello @ndiego,

    That’s exactly what I did.

    But I kept wondering why it’s the only setting that works this way. So I checked native blocks (eg. columns block). Panels like that are used only for styling (tab), for settings (tab) they’re still collapsible.

    Are you saying all the panels in the future will look like those used for styling?

    Thread Starter Kovas

    (@zerocore)

    Sorry, but I don’t think it’s resolved. Unless there is a change coming, here’s how panels look like in WordPress 6.2:

    Settings
    Styles

    So Visibility panel should be collapsible or be moved to Styles.

    Plugin Author Nick Diego

    (@ndiego)

    Thanks for the feedback @zerocore. This is an intentional design choice for the plugin, which is why I marked it as resolved.

    The panel uses the same design “system” as the panels under the Styles tab in that it allows you to add additional “tools” to the panel. You can then reset “tools” which remove them from the panel.

    This approach is not unique to the Styles tab, even though most block settings still use the collapsable method. You can see here on the Query Loop block that the Filters panel uses this new “tools” approach.

    Long story short, there is no designated panel design based on the tab that the panel “lives” in. Given how Block Visibility works, in that it allows you to configure multiple controls, the “tools” panel made the most sense. While there are definitely some drawbacks to this design, there are no plans to revert to a collapsible panel.

    Thread Starter Kovas

    (@zerocore)

    I see. Thanks for you patience then πŸ™‚

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Panel does not collapse’ is closed to new replies.