Ensured all table headers and cells are left-aligned for consistent layout and better readability.

This commit is contained in:
Kartik sharma 2025-06-23 12:22:16 +05:30
parent 089bfecfd3
commit b20e6d17eb
2 changed files with 15 additions and 10 deletions

View File

@ -7,33 +7,38 @@ const DirectoryListTableHeader = ({ children }) => {
<table className="table px-2">
<thead>
<tr>
<th colSpan={2}>
<th colSpan={2} className="text-start">
<div className="d-flex align-items-center gap-1">
<span>Name</span>
</div>
</th>
<th className="px-2 text-start">
<div className="d-flex text-center align-items-center gap-1 justify-content-start">
<div className="d-flex align-items-center gap-1">
<span>Email</span>
</div>
</th>
<th className="mx-2">
<div className="d-flex align-items-center m-0 p-0 gap-1">
<th className="mx-2 text-start">
<div className="d-flex align-items-center gap-1">
<span>Phone</span>
</div>
</th>
<th colSpan={2} className="mx-2 ps-20">
Organization
<th colSpan={2} className="mx-2 ps-20 text-start">
<span>Organization</span>
</th>
<th className="mx-2 text-start">
<span>Category</span>
</th>
<th className="text-start">
<span>Action</span>
</th>
<th className="mx-2">Category</th>
<th>Action</th>
</tr>
</thead>
<tbody className="table-border-bottom-0 overflow-auto">
<tbody className="table-border-bottom-0 overflow-auto text-start">
{children}
</tbody>
</table>
</div>
);
};
export default DirectoryListTableHeader;

View File

@ -73,7 +73,7 @@ const EmployeeList = () => {
}
const lowercasedText = text.toLowerCase();
return data.filter((item) => {
const fullName = `${item.firstName} ${item.lastName}`.toLowerCase();
const fullName = `${item.firstName} ${item.lastName} ${item.lastName}`.toLowerCase();
const email = item.email ? item.email.toLowerCase() : "";
const phoneNumber = item.phoneNumber ? item.phoneNumber.toLowerCase() : "";
const jobRole = item.jobRole ? item.jobRole.toLowerCase() : "";