rl-core-front 0.18.4 → 0.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -477,8 +477,17 @@ function cellStyle(columnDef: {
|
|
|
477
477
|
return { className: shrinkClass(columnDef) };
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
+
/*
|
|
481
|
+
O corte vale para a célula **e** para o que ela tem dentro.
|
|
482
|
+
|
|
483
|
+
`truncate` na `<td>` sozinho só clipa quando o conteúdo é um bloco — um
|
|
484
|
+
`<div>` que envolve o texto, que é como metade das colunas é escrita: o
|
|
485
|
+
texto some no meio da palavra, sem as reticências, porque quem transborda é
|
|
486
|
+
o filho e não a célula. Repetindo o corte no filho direto, as reticências
|
|
487
|
+
aparecem nos dois casos.
|
|
488
|
+
*/
|
|
480
489
|
return {
|
|
481
|
-
className: "truncate",
|
|
490
|
+
className: "truncate [&>*]:truncate",
|
|
482
491
|
style: { maxWidth: meta?.maxWidth ?? CELL_MAX_WIDTH },
|
|
483
492
|
};
|
|
484
493
|
}
|