fixed columns width

This commit is contained in:
2026-04-16 01:03:17 +10:00
parent 68301465b5
commit f04dbb46d6
2 changed files with 7 additions and 2 deletions

View File

@@ -156,10 +156,15 @@ const ramPricesListNoIds = [
{ "type": "DDR4", "name": "DDR4-3200-64GB-Y10", "size": 64, "maker": "SKHynix", "release": "2021-10", "price": 205, }
]
import * as d3 from "d3";
const ramPricesList = ramPricesListNoIds.map((x,index) => ({
...x,
id: index + 1,
// release: Number(x.release.split("-")[0]),
}))
export { realPhotos, sidecardData, mainCards, playbackVideo,ramPricesList };

View File

@@ -11,8 +11,8 @@ function RamGrid() {
{ field: 'type', headerName: 'Type', flex: 0.5},
{ field: 'name', headerName: 'Model', flex: 1},
{ field: 'maker', headerName: 'Maker', flex: 0.5},
{ field: 'size', headerName: 'Size (GB)',lex: 0.5},
{ field: 'release', headerName: 'Release Year-month'},
{ field: 'size', headerName: 'Size (GB)'},
{ field: 'release', headerName: 'Release Year-month',flex: 0.5},
{ field: 'price' ,headerName: 'Price(USD)'},
]
return (