hi-tm 0.0.1-beta-0.0.310 → 0.0.1-beta-0.0.311
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.
|
@@ -84,7 +84,7 @@ mobileCardConfig = {
|
|
|
84
84
|
defaultColumns: 'grid-cols-1',
|
|
85
85
|
gap: 'gap-4',
|
|
86
86
|
},
|
|
87
|
-
}, actionButtonsStyle }) => {
|
|
87
|
+
}, actionButtonsStyle, }) => {
|
|
88
88
|
// Track which rows are expanded to show their children
|
|
89
89
|
const [expandedRows, setExpandedRows] = (0, react_1.useState)([]);
|
|
90
90
|
const [activeModal, setActiveModal] = (0, react_1.useState)(null);
|
|
@@ -366,7 +366,7 @@ mobileCardConfig = {
|
|
|
366
366
|
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: {
|
|
367
367
|
position: 'fixed',
|
|
368
368
|
top: `${mousePosition.y}px`,
|
|
369
|
-
left: `${Math.max(0, Math.min(window.innerWidth - 160, mousePosition.x - 80))}
|
|
369
|
+
left: `${Math.max(0, Math.min(window.innerWidth - 160, mousePosition.x - 80))}`, // Ensure modal stays within screen
|
|
370
370
|
}, onClick: (e) => e.stopPropagation() },
|
|
371
371
|
react_1.default.createElement("ul", { className: "flex flex-col items-start justify-center gap-1 p-2" }, modalActions.map((action) => (react_1.default.createElement("li", { key: action.id, onClick: (e) => handleActionClick(action.id, row.id, e), className: `rounded-md p-2 text-sm font-normal text-opacity-70 w-full cursor-pointer ${modalStyleOperationHandler(action.class)} customTransition` }, action.text)))))))))),
|
|
372
372
|
showAvatars && avatarItems.length > 0 && (react_1.default.createElement("div", { className: "flex items-center mt-3" },
|