Skip to content

How to vertically center the right (and left) element of a ListItem? #3353

@MatteoBuffo

Description

@MatteoBuffo

Hi!

I have a List made of basic ListItems and I would like to vertically center both the left and the right element of each item.

As you can see from the screenshot, the left element actually is vertically aligned because it is larger (size={40}) than the right one (default size). The right one, instead, is misaligned.

listitem_verticalalign

The same thing happens when I have a right element that is larger than the left one.

Any hints? I tried passing style={{verticalAlign:"middle"}} to both elements but no luck.

Check out the Snack example

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions