@lensui/lens-table 0.1.32 → 0.1.33

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