setsize
This commit is contained in:
parent
09b8f8d3d2
commit
ab5ae6491d
@ -135,7 +135,7 @@ export default function PmsGrid({
|
||||
|
||||
return (
|
||||
<div className="pms-grid">
|
||||
<div className="row mb-2">
|
||||
{/* <div className="row mb-2">
|
||||
<div className="col-8">
|
||||
<div className="d-flex flex-row gap-2 gap-2 ">
|
||||
<div>
|
||||
@ -192,10 +192,10 @@ export default function PmsGrid({
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
<div
|
||||
ref={wrapperRef}
|
||||
className="grid-wrapper text-nowrap" id="both-scrollbars-example"
|
||||
className="grid-wrapper text-nowrap border rounded"
|
||||
style={{ maxHeight: features.maxHeight || "60vh" }}
|
||||
>
|
||||
<table className="table table-sm roudned mb-0">
|
||||
@ -270,10 +270,10 @@ export default function PmsGrid({
|
||||
</button>
|
||||
)}
|
||||
{features.resizing && (
|
||||
<div
|
||||
className="resize-handle text-primary"
|
||||
<i
|
||||
className="resize-handle bx bx bx-move-horizontal "
|
||||
onMouseDown={(e) => onResizeMouseDown(e, col.key)}
|
||||
/>
|
||||
></i>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@ -372,16 +372,8 @@ export default function PmsGrid({
|
||||
return (
|
||||
<React.Fragment key={row[rowKey]}>
|
||||
<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 && (
|
||||
<td className="text-center p-2 .sticky-action-column" >
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user