Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Multiple themes: Image blocks are centered by default, not left aligned #5097

@mikeicode

Description

@mikeicode

Quick summary

I would assume that Image blocks are supposed to be left aligned (not floated left however) when you don't set specific alignment. Testing multiple Varia and Blockbase themes they are centered by default. There is no way to set them to regular left alignment without the "Align Left" setting, which results in text wrapping.

Steps to reproduce

  • Activate Maywood
  • Add an Image block, don't set a specific alignment

What you expected to happen

Published page should look like the editor with the image to the left without text wrapping.

Screen Shot 2021-11-19 at 08 11 37

The caption probably shouldn't be centered but that's not the point of this issue.

What actually happened

It's center aligned.

Screen Shot on 2021-11-19 at 08:12:43

The issue with setting it to Align Left is that the text wraps:

Screen Shot on 2021-11-19 at 08:13:38

On Maywood this CSS causes the issue:

Screen Shot on 2021-11-19 at 08:16:02

Context

Building a DIFM-L site.

pdh1Xd-78-p2

Operating System

macOS

Browser

Mozilla Firefox

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

Every Varia and Blockbase theme I tested. Maywood is the example above.

Other notes

No response

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

Yes, easy to implement

Workaround details

You could set the image to Align Left and add a Spacer block right under the image to break the float (so the text doesn't wrap the image).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Customer ReportIssues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report".Triaged[Pri] High[Type] BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions