mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Fix alignment of ID label on tables and remove remarks from search criteria
This commit is contained in:
parent
18308d5055
commit
56f30fa60c
3 changed files with 13 additions and 12 deletions
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue