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">
<TableHead>
<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}>
Name
</TableCell>

View file

@ -118,7 +118,9 @@ export default function EquipmentInstancesListPage() {
<Table sx={{ minWidth: "32rem" }} size="medium">
<TableHead>
<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}>
Name
</TableCell>
@ -145,15 +147,10 @@ export default function EquipmentInstancesListPage() {
equipment.category
.toLowerCase()
.includes(filter.toLowerCase()) ||
equipment.remarks
? equipment.remarks
.toLowerCase()
.includes(filter.toLowerCase())
: false ||
equipment.last_updated
.toLowerCase()
.includes(filter?.toLowerCase()) ||
equipment.status.toLowerCase() == filter.toLowerCase()
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
true
)

View file

@ -72,7 +72,9 @@ export default function EquipmentListPage() {
<Table sx={{ minWidth: "32rem" }} size="medium">
<TableHead>
<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}>
Name
</TableCell>