From 40d2dab112656ed191022df0e3f525133e9b0804 Mon Sep 17 00:00:00 2001 From: Dhaval Rajpara Date: Wed, 18 Nov 2026 16:24:46 +0530 Subject: [PATCH] RANGER-5880 : Enable column resizing for User Name columns across Ranger UI tables --- .../src/components/XATableLayout.jsx | 57 +++++++++----- .../webapp/react-webapp/src/styles/style.css | 5 +- .../views/AuditEvent/Access/AccessLogs.jsx | 75 +++++++------------ .../users_details/UserListing.jsx | 23 ++++-- 4 files changed, 86 insertions(+), 74 deletions(-) diff --git a/security-admin/src/main/webapp/react-webapp/src/components/XATableLayout.jsx b/security-admin/src/main/webapp/react-webapp/src/components/XATableLayout.jsx index 155b9f41f16..a941c381621 100644 --- a/security-admin/src/main/webapp/react-webapp/src/components/XATableLayout.jsx +++ b/security-admin/src/main/webapp/react-webapp/src/components/XATableLayout.jsx @@ -151,7 +151,12 @@ function XATableLayout({ ), - width: 40 + width: 40, + + // disableResizing (not hideResizer) is required here: it sets + // canResize = false, so useFlexLayout excludes this column from + // flex sizing and it stays exactly 40px wide. + disableResizing: true }; if (rowSelectOp && rowSelectOp.position === "first") { cols.push(selectionCol, ...columns); @@ -345,23 +350,39 @@ function XATableLayout({ column.toggleSortBy(!column.isSortedDesc) } > - {columnResizable && !column.disableResizing && ( - <> -