Skip to content

Commit

Permalink
Merge pull request #392 from Bonymol-aot/FWF-4135/UI-issues
Browse files Browse the repository at this point in the history
Resolved UI issues in roles and table
  • Loading branch information
arun-s-aot authored Jan 1, 2025
2 parents bd6c552 + 09a4d3c commit 8ef7068
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 6 additions & 2 deletions forms-flow-admin/src/components/roles/roles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ const Roles = React.memo((props: any) => {
const [permission, setPermission] = React.useState([]);

const filterList = (filterTerm, List) => {
let roleList = removingTenantId(List,tenantId);
let roleList = removingTenantId(List, tenantId);

// Escape backslashes and square brackets in filterTerm for safe regex use
const escapedFilterTerm = filterTerm.replace(/([\\[])/g, '\\$1');

let newRoleList = roleList.filter((role) => {
return role.name.toLowerCase().search(filterTerm.toLowerCase()) !== -1;
return role.name.toLowerCase().search(escapedFilterTerm.toLowerCase()) !== -1;
});
return newRoleList;
};
Expand Down
10 changes: 3 additions & 7 deletions forms-flow-admin/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ bottom: 0;
color: #0072ed !important;
}

.react-bootstrap-table table {
min-height: 60vh;
}

.react-bootstrap-table{
min-height: 65vh;
}



6 changes: 6 additions & 0 deletions forms-flow-theme/scss/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ $status-radius: 50%;
}
}

.custom-table th,
.custom-table td {
vertical-align: middle;
}


.width-40 {
width: 25rem !important;
max-width: 40% !important;
Expand Down

0 comments on commit 8ef7068

Please sign in to comment.