Skip to content

Commit

Permalink
fix: fix dataformatting
Browse files Browse the repository at this point in the history
We'll change that later anyways, but fixes chromatic diff.
  • Loading branch information
etienneburdet committed Apr 30, 2024
1 parent 871ba0a commit ae7a29e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/visualizations/src/components/Table/Cell/Cell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@
padding: var(--spacing-75);
}
:global(.table-header--number) {
:global(.ods-dataviz--default) td.table-header--number {
text-align: right;
}
/* to be improved in the formatting story */
:global(.table-data--long-text > span),
:global(.table-data--short-text),
:global(.table-data--url) {
:global(.ods-dataviz--default) td.table-data--long-text > span,
:global(.ods-dataviz--default) td.table-data--short-text,
:global(.ods-dataviz--default) td.table-data--url {
text-overflow: ellipsis;
overflow: hidden;
width: max-content;
min-width: 40px;
max-width: 240px;
}
:global(.table-data--long-text > span) {
:global(.ods-dataviz--default) td.table-data--long-text > span {
display: -webkit-box;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
white-space: pre-wrap;
}
:global(.table-data--number) {
:global(.ods-dataviz--default) td.table-data--number {
text-align: right;
}
</style>

0 comments on commit ae7a29e

Please sign in to comment.