• Resolved ekesto

    (@ekesto)


    I have a custom block theme and for some reason all the block- and pattern previews are super narrow. Is there some “viewport” setting I’m missing in my theme?

    Appreciate any hint!

    • This topic was modified 4 weeks, 1 day ago by ekesto.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    theme.json has a “layout” setting for content width, but that would not only affect previews. Most themes output a viewport meta tag, but there’s not a specific theme setting for it, it’s almost always width=device-width. Again, would not only affect previews.

    I suspect there’s an odd editor style limiting width. Use your browser’s element inspector tool to find what CSS rule is limiting width. When found, the tool will also tell you where it comes from. If you have CSS optimization in effect, it will obfuscate the rule’s source. The optimization should be disabled for this investigation.

    Thread Starter ekesto

    (@ekesto)

    Thanks for the hint, @bcworkz!

    Indeed I just found out that I had iframe styles that interfered with the preview.. Lesson learned! Cheers!

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