palantir/blueprint

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

Open

#5,767 创建于 2022年11月21日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)TypeScript (2,167 fork)batch import
P2Package: tableType: bughelp wanted

仓库指标

Star
 (20,263 star)
PR 合并指标
 (平均合并 43天 10小时) (30 天内合并 27 个 PR)

描述

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.

贡献者指南