diff --git a/src/services/pmsGrid/BasicTable.jsx b/src/services/pmsGrid/BasicTable.jsx index 243296e3..5377f4db 100644 --- a/src/services/pmsGrid/BasicTable.jsx +++ b/src/services/pmsGrid/BasicTable.jsx @@ -216,7 +216,7 @@ const boqData = [ id: 18, category: "Waterproofing Works", itemCode: "W-002", - description: "Polyurethane Waterproofing Membrane", + description: "Polyurethane Waterproofing Membrane Polyurethane Waterproofing Membrane", unit: "Sqm", quantity: 200, rate: 850, diff --git a/src/services/pmsGrid/PmsGrid.jsx b/src/services/pmsGrid/PmsGrid.jsx index b6d7c25c..df258e78 100644 --- a/src/services/pmsGrid/PmsGrid.jsx +++ b/src/services/pmsGrid/PmsGrid.jsx @@ -246,7 +246,7 @@ export default function PmsGrid({ style={{ maxHeight: features.maxHeight || "80vh" }} > {features.IsNumbering && ( + )} + {features.expand && ( + )} {features.selection && ( @@ -279,23 +284,7 @@ export default function PmsGrid({ /> )} - {features.expand && ( - - )} + {visibleColumns.map((col) => { const style = { minWidth: col.width || 120, @@ -460,6 +449,22 @@ export default function PmsGrid({ + )} + {/* Expand toggle next to selection */} + {features.expand && ( + )} {/* Selection checkbox (always left) */} {features.selection && ( @@ -473,22 +478,7 @@ export default function PmsGrid({ )} - {/* Expand toggle next to selection */} - {features.expand && ( - - )} + {/* Data columns */} {visibleColumns.map((col) => { diff --git a/src/services/pmsGrid/pms-grid.css b/src/services/pmsGrid/pms-grid.css index 0903a295..f1d61478 100644 --- a/src/services/pmsGrid/pms-grid.css +++ b/src/services/pmsGrid/pms-grid.css @@ -54,7 +54,13 @@ } -.pms-grid th, +.pms-grid th { + padding: 2px 4px !important; + vertical-align: middle; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} .pms-grid td { padding: 8px 12px !important; vertical-align: middle; @@ -89,7 +95,7 @@ } /* Always sticky first column (checkbox) */ -.pms-grid th:first-child, +/* .pms-grid th:first-child, .pms-grid td:first-child { position: sticky; left: 0; @@ -99,7 +105,7 @@ min-width: 40px; text-align: center; box-shadow: 1px 0 1px rgba(0, 0, 0, 0.08); -} +} */ /* Always sticky last column (Actions) */ .pms-grid .th-lastChild, @@ -247,3 +253,5 @@ .dropdown-submenu > .dropdown-menu.show { display: block; } + +
-
#
+ # +
+ - 0 && - currentRows.every((r) => selected.has(r[rowKey])) - } - onChange={(e) => - e.target.checked - ? selectAllOnPage(currentRows) - : deselectAllOnPage(currentRows) - } - /> - {ind + 1} + + - -