Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table2 truncated table cells not vertically centered with non-default table row heights #5767

Open
zerovox opened this issue Nov 21, 2022 · 1 comment

Comments

@zerovox
Copy link
Contributor

zerovox commented Nov 21, 2022

Screen Shot 2022-11-21 at 11 55 35 AM

Steps to reproduce

  1. Create a table with non-default row heights, in my screenshot below this is 30px via defaultRowHeight={30}
  2. Add cells formatted with <TruncatedFormat2 />

Actual behavior

The row contents are not all vertically lined up

Expected behavior

Row contents are still vertically centered within the row.

Possible solution

TruncatedFormat2 does some relative styling for the truncated value + truncated-more-button. It could instead be flex-styled to right align the more-button.

@adidahiya
Copy link
Contributor

Agreed @zerovox, this could be improved:

image

It will probably be a relatively simple CSS change if you or anyone else wants to contribute a bugfix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants