feat: truncate long values in table viz, a per-column setting (#19383)

* feat: truncate long values, a per-column setting

* fix: lint

* fix: removed width for column control

* fix: removed truncate option for time, bool, and numeric columns

* prevent extra div if not truncating
This commit is contained in:
stevetracvc
2022-07-06 22:16:48 -06:00
committed by GitHub
parent ac01a1b02f
commit 7e504ff680
3 changed files with 50 additions and 1 deletions

View File

@@ -82,6 +82,17 @@ export default styled.div`
float: right;
}
.dt-truncate-cell {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dt-truncate-cell:hover {
overflow: visible;
white-space: normal;
height: auto;
}
.dt-pagination {
text-align: right;
/* use padding instead of margin so clientHeight can capture it */