This commit is contained in:
pramod.mahajan 2025-11-01 19:15:53 +05:30
parent 09b8f8d3d2
commit ab5ae6491d

View File

@ -135,7 +135,7 @@ export default function PmsGrid({
return ( return (
<div className="pms-grid"> <div className="pms-grid">
<div className="row mb-2"> {/* <div className="row mb-2">
<div className="col-8"> <div className="col-8">
<div className="d-flex flex-row gap-2 gap-2 "> <div className="d-flex flex-row gap-2 gap-2 ">
<div> <div>
@ -192,10 +192,10 @@ export default function PmsGrid({
)} )}
</div> </div>
</div> </div>
</div> </div> */}
<div <div
ref={wrapperRef} ref={wrapperRef}
className="grid-wrapper text-nowrap" id="both-scrollbars-example" className="grid-wrapper text-nowrap border rounded"
style={{ maxHeight: features.maxHeight || "60vh" }} style={{ maxHeight: features.maxHeight || "60vh" }}
> >
<table className="table table-sm roudned mb-0"> <table className="table table-sm roudned mb-0">
@ -270,10 +270,10 @@ export default function PmsGrid({
</button> </button>
)} )}
{features.resizing && ( {features.resizing && (
<div <i
className="resize-handle text-primary" className="resize-handle bx bx bx-move-horizontal "
onMouseDown={(e) => onResizeMouseDown(e, col.key)} onMouseDown={(e) => onResizeMouseDown(e, col.key)}
/> ></i>
)} )}
</div> </div>
</div> </div>
@ -372,16 +372,8 @@ export default function PmsGrid({
return ( return (
<React.Fragment key={row[rowKey]}> <React.Fragment key={row[rowKey]}>
<tr <tr
className={`align-middle ${
isSelected ? "bg-light table-active" : ""
}`}
onClick={(e) => {
// Optional: click row to select, but ignore if user clicked a button or checkbox
if (e.target.tagName !== "BUTTON" && e.target.tagName !== "INPUT") {
toggleSelect(row[rowKey]);
}
}}
style={{ cursor: "pointer" }}
> >
{features.selection && ( {features.selection && (
<td className="text-center p-2 .sticky-action-column" > <td className="text-center p-2 .sticky-action-column" >