Fix alignment of ID label on tables and remove remarks from search criteria

This commit is contained in:
Keannu Bernasol 2023-12-18 00:01:32 +08:00
parent 18308d5055
commit 56f30fa60c
3 changed files with 13 additions and 12 deletions

View file

@ -74,7 +74,9 @@ export default function EquipmentInstancesFilteredListPage() {
<Table sx={{ minWidth: "32rem" }} size="medium"> <Table sx={{ minWidth: "32rem" }} size="medium">
<TableHead> <TableHead>
<TableRow style={{ backgroundColor: colors.header_color }}> <TableRow style={{ backgroundColor: colors.header_color }}>
<TableCell style={styles.text_light}>ID</TableCell> <TableCell align="center" style={styles.text_light}>
ID
</TableCell>
<TableCell align="center" style={styles.text_light}> <TableCell align="center" style={styles.text_light}>
Name Name
</TableCell> </TableCell>

View file

@ -118,7 +118,9 @@ export default function EquipmentInstancesListPage() {
<Table sx={{ minWidth: "32rem" }} size="medium"> <Table sx={{ minWidth: "32rem" }} size="medium">
<TableHead> <TableHead>
<TableRow style={{ backgroundColor: colors.header_color }}> <TableRow style={{ backgroundColor: colors.header_color }}>
<TableCell style={styles.text_light}>ID</TableCell> <TableCell align="center" style={styles.text_light}>
ID
</TableCell>
<TableCell align="center" style={styles.text_light}> <TableCell align="center" style={styles.text_light}>
Name Name
</TableCell> </TableCell>
@ -145,15 +147,10 @@ export default function EquipmentInstancesListPage() {
equipment.category equipment.category
.toLowerCase() .toLowerCase()
.includes(filter.toLowerCase()) || .includes(filter.toLowerCase()) ||
equipment.remarks equipment.last_updated
? equipment.remarks .toLowerCase()
.toLowerCase() .includes(filter?.toLowerCase()) ||
.includes(filter.toLowerCase()) equipment.status.toLowerCase() == filter.toLowerCase()
: false ||
equipment.last_updated
.toLowerCase()
.includes(filter?.toLowerCase()) ||
equipment.status.toLowerCase() == filter.toLowerCase()
: // If filter keyword is null then we just pass through everything as if we did not filter at all : // If filter keyword is null then we just pass through everything as if we did not filter at all
true true
) )

View file

@ -72,7 +72,9 @@ export default function EquipmentListPage() {
<Table sx={{ minWidth: "32rem" }} size="medium"> <Table sx={{ minWidth: "32rem" }} size="medium">
<TableHead> <TableHead>
<TableRow style={{ backgroundColor: colors.header_color }}> <TableRow style={{ backgroundColor: colors.header_color }}>
<TableCell style={styles.text_light}>ID</TableCell> <TableCell align="center" style={styles.text_light}>
ID
</TableCell>
<TableCell align="center" style={styles.text_light}> <TableCell align="center" style={styles.text_light}>
Name Name
</TableCell> </TableCell>