Update launch configuration for development environment and enhance ProductDetailPage styling. Added environment variables and skip files to launch.json, and improved image handling in ProductDetailPage with consistent dimensions and border styling.
This commit is contained in:
21
.vscode/launch.json
vendored
21
.vscode/launch.json
vendored
@@ -3,20 +3,31 @@
|
|||||||
// This will install dependencies before starting the dev server
|
// This will install dependencies before starting the dev server
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
|
||||||
{
|
{
|
||||||
"type": "node-terminal",
|
"type": "node-terminal",
|
||||||
"name": "Start with API propxy to seedheads.de (Install Deps)",
|
"name": "Start with API propxy to seedheads.de (Install Deps)",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"command": "npm run start:seedheads",
|
"command": "npm run start:seedheads",
|
||||||
"preLaunchTask": "npm: install",
|
"preLaunchTask": "npm: install",
|
||||||
"cwd": "${workspaceFolder}"
|
"env": {
|
||||||
}, {
|
"NODE_ENV": "development"
|
||||||
"type": "node-terminal",
|
},
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
]
|
||||||
|
},{
|
||||||
"name": "Start",
|
"name": "Start",
|
||||||
|
"type": "node-terminal",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"command": "npm run start",
|
"command": "npm run start",
|
||||||
"cwd": "${workspaceFolder}"
|
"env": {
|
||||||
|
"NODE_ENV": "development"
|
||||||
|
},
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -665,18 +665,12 @@ class ProductDetailPage extends Component {
|
|||||||
.map((attribute) => {
|
.map((attribute) => {
|
||||||
const key = attribute.kMerkmalWert;
|
const key = attribute.kMerkmalWert;
|
||||||
return (
|
return (
|
||||||
<Box key={key} sx={{ mb: 1 }}>
|
<Box key={key} sx={{ mb: 1,border: "1px solid #e0e0e0", borderRadius: 1 }}>
|
||||||
<CardMedia
|
<CardMedia
|
||||||
component="img"
|
component="img"
|
||||||
|
style={{ width: "72px", height: "98px" }}
|
||||||
image={attributeImages[key]}
|
image={attributeImages[key]}
|
||||||
alt={`Attribute ${key}`}
|
alt={`Attribute ${key}`}
|
||||||
sx={{
|
|
||||||
maxWidth: "100px",
|
|
||||||
maxHeight: "100px",
|
|
||||||
objectFit: "contain",
|
|
||||||
border: "1px solid #e0e0e0",
|
|
||||||
borderRadius: 1,
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user