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,11 +147,6 @@ export default function EquipmentInstancesListPage() {
equipment.category equipment.category
.toLowerCase() .toLowerCase()
.includes(filter.toLowerCase()) || .includes(filter.toLowerCase()) ||
equipment.remarks
? equipment.remarks
.toLowerCase()
.includes(filter.toLowerCase())
: false ||
equipment.last_updated equipment.last_updated
.toLowerCase() .toLowerCase()
.includes(filter?.toLowerCase()) || .includes(filter?.toLowerCase()) ||

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>