@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 +1 -3
- package/dist/index.js +1 -3
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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));
|