• Resolved robruifrok

    (@robruifrok)


    When I choose blockvisibility presets, the visibilty box becomes 338px wide. As a consequence the controls at the right disappear in the overflow and become unusable.

    I can repair this by setting

    .block-visibility__react-select .react-select__control{
    max-width:248px;
    }

    in admin-style.css.

    Could this be due to the lenth of the Dutch translation I am using?

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

    (@ndiego)

    Hi @robruifrok,

    I am having a hard time replicating on my end. Would you be able to see if the following code resolves the issue for you?

    .block-visibility__react-select .react-select__control {
    max-width: 100%;
    }

    In theory, that should work and I prefer this solution rather than hardcoding a specific width. Let me know either way, thanks!

    Best,
    Nick

    Thread Starter robruifrok

    (@robruifrok)

    On my end it is not that difficult to show the effect of the language settings. I can switch from dutch to English in the wordpress general settings.

    In English the field below ‘show the block if’ shows for example ‘All selected presets apply’ which fits easily in the selectbox.

    In dutch this becomes ‘Alle geselecteerde voorinstellingen zijn van toepassing’ which is a lot longer and stretches the selectbox beyond the border of ‘block-visibility__controls-panel’.

    Setting

    .block-visibility__react-select .react-select__control {
    max-width: 100%;
    }

    does not work. I have to set it to a fixed value.

    Plugin Author Nick Diego

    (@ndiego)

    Thanks for the additional feedback @robruifrok. I am still not able to replicate on my end, see the screenshot below. Can you share the browser that you are using as well as the version of WordPress? That will help me diagnose further.

    Thanks,
    Nick

    Plugin Author Nick Diego

    (@ndiego)

    Ignore the previous comment. I was able to replicate the issue in Firefox and have implemented a fix. This will be included in the next version of Block Visibility, which I am aiming to release this week.

    Best,
    Nick

    Thread Starter robruifrok

    (@robruifrok)

    I am using Firefox. Tanks for the effort.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.