@lensui/lens-table 0.1.62 → 0.1.64

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/dist/index.cjs CHANGED
@@ -777,9 +777,7 @@ function isColumnFilterable(column) {
777
777
  return isDataColumn(column) && column.filterable !== false;
778
778
  }
779
779
  function getHeaderTitleRequiredWidth(column, titleWidth) {
780
- const minimumReadableTitleWidth = Math.min(Math.ceil(titleWidth), 28);
781
- const horizontalPadding = titleWidth > 48 ? 24 : 0;
782
- return minimumReadableTitleWidth + horizontalPadding + (column.align === "center" ? 20 : 22);
780
+ return Math.ceil(titleWidth) + (column.align === "center" ? 20 : 22);
783
781
  }
784
782
  function getVisibleHeaderActions(column, width, columnDraggable = false, titleWidth = 26, actionSlotWidth = HEADER_ACTION_SLOT_WIDTH) {
785
783
  const capacity = Math.max(0, Math.floor((width - getHeaderTitleRequiredWidth(column, titleWidth)) / actionSlotWidth));
package/dist/index.js CHANGED
@@ -747,9 +747,7 @@ function isColumnFilterable(column) {
747
747
  return isDataColumn(column) && column.filterable !== false;
748
748
  }
749
749
  function getHeaderTitleRequiredWidth(column, titleWidth) {
750
- const minimumReadableTitleWidth = Math.min(Math.ceil(titleWidth), 28);
751
- const horizontalPadding = titleWidth > 48 ? 24 : 0;
752
- return minimumReadableTitleWidth + horizontalPadding + (column.align === "center" ? 20 : 22);
750
+ return Math.ceil(titleWidth) + (column.align === "center" ? 20 : 22);
753
751
  }
754
752
  function getVisibleHeaderActions(column, width, columnDraggable = false, titleWidth = 26, actionSlotWidth = HEADER_ACTION_SLOT_WIDTH) {
755
753
  const capacity = Math.max(0, Math.floor((width - getHeaderTitleRequiredWidth(column, titleWidth)) / actionSlotWidth));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensui/lens-table",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "description": "A lightweight, canvas-rendered React table component for LensUI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",