hi-tm 0.18.9 → 0.19.0
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.
|
@@ -654,16 +654,13 @@ pageIndex = 0, // Default to first page (0-indexed)
|
|
|
654
654
|
ShowActionModal && activeModal === row.id && (react_1.default.createElement("div", { ref: modalRef, className: "modal-content fixed z-[9999] w-40 rounded-md bg-white shadow-lg", style: {
|
|
655
655
|
position: 'fixed',
|
|
656
656
|
top: (() => {
|
|
657
|
-
|
|
657
|
+
const offset = actionModalTopClassName || '0px';
|
|
658
658
|
const allRows = isMobileView ? getAllMobileRows() : rows;
|
|
659
|
-
// Find the index of the current row
|
|
660
659
|
const currentRowIndex = allRows?.findIndex((r) => r.id === row.id);
|
|
661
|
-
// Check if this is one of the last 3 rows
|
|
662
660
|
const isLastThreeRows = allRows && currentRowIndex >= allRows.length - 3;
|
|
663
|
-
// If it's one of the last 3 rows, reduce the top position by 100px
|
|
664
661
|
return isLastThreeRows
|
|
665
|
-
?
|
|
666
|
-
:
|
|
662
|
+
? `calc(${mousePosition.y - 110}px + ${offset})`
|
|
663
|
+
: `calc(${mousePosition.y}px + ${offset})`;
|
|
667
664
|
})(),
|
|
668
665
|
left: `${mousePosition.x + 20}px`,
|
|
669
666
|
}, onClick: (e) => e.stopPropagation() },
|