close
Skip to content

DataViews list layout doesn't horizontally align content when a single property is visible #75914

@fcoveram

Description

@fcoveram

Description

In DataViews component, the list layout does not align content inside rows properly when a single property is checked. The row height could shrink to balance the empty space.

Step-by-step reproduction instructions

  1. Go to DataViews, layout list
  2. Open the appearance settings and hide all properties except one that is text-based.
  3. See the row height.

The problem seems to be with Title and the rest of fields as hiding it shows an empty space for the action displayed in hover.

Image

Screenshots, screen recording, code snippet

Multiple properties Single property
Image Image

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions