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 8ca5f6d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/visualizations/src/components/Table/Cell/Cell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@
</td>

<style>
:global(.ods-dataviz--default) td {
:global(.ods-dataviz--default td) {
text-align: left;
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 8ca5f6d

Please sign in to comment.