diff --git a/src/pages/panel/inventory/InventoryTable.tsx b/src/pages/panel/inventory/InventoryTable.tsx index b7fba41a..a68e33dc 100644 --- a/src/pages/panel/inventory/InventoryTable.tsx +++ b/src/pages/panel/inventory/InventoryTable.tsx @@ -143,7 +143,7 @@ export const InventoryTable = ({ searchCrit, history }: InventoryTableProps) => : i.kind === 'double' || i.kind === 'float' || i.kind === 'int32' || i.kind === 'int64' ? 'number' : 'string', - display: 'flex', + display: inventoryTableCellHasIcon(i) ? 'flex' : undefined, valueGetter: i.kind === 'date' || i.kind === 'datetime' ? (value) => new Date(value) diff --git a/src/pages/panel/inventory/utils/InventoryTableKindRenderCell.tsx b/src/pages/panel/inventory/utils/InventoryTableKindRenderCell.tsx index 92a7fd9c..0379e36b 100644 --- a/src/pages/panel/inventory/utils/InventoryTableKindRenderCell.tsx +++ b/src/pages/panel/inventory/utils/InventoryTableKindRenderCell.tsx @@ -1,4 +1,4 @@ -import { Box, Stack } from '@mui/material' +import { Box, Stack, Typography } from '@mui/material' import { QueryFunctionContext, useQuery } from '@tanstack/react-query' import axios from 'axios' import { useThemeMode } from 'src/core/theme' @@ -45,13 +45,15 @@ export const InventoryTableKindRenderCell = ({ group, iconUrl, name }: Inventory refetchOnReconnect: false, }) return ( - + {svg ? ( ) : svg === null ? ( ) : undefined} - {name} + + {name} + ) }