upd
This commit is contained in:
@@ -223,27 +223,19 @@ class PrerenderProduct extends React.Component {
|
|||||||
(this.props.t ? this.props.t('product.articleNumber') : 'Artikelnummer')+': '+product.articleNumber+' '+(product.gtin ? ` | GTIN: ${product.gtin}` : "")
|
(this.props.t ? this.props.t('product.articleNumber') : 'Artikelnummer')+': '+product.articleNumber+' '+(product.gtin ? ` | GTIN: ${product.gtin}` : "")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
// Product title - reserve space for 2 lines
|
// Product title
|
||||||
React.createElement(
|
|
||||||
Box,
|
|
||||||
{ sx: { mb: 2, minHeight: "72px" } },
|
|
||||||
React.createElement(
|
React.createElement(
|
||||||
Typography,
|
Typography,
|
||||||
{
|
{
|
||||||
variant: 'h4',
|
variant: 'h4',
|
||||||
component: 'h1',
|
component: 'h1',
|
||||||
|
gutterBottom: true,
|
||||||
sx: {
|
sx: {
|
||||||
fontWeight: 600,
|
fontWeight: 600,
|
||||||
color: "#333",
|
color: "#333"
|
||||||
display: '-webkit-box',
|
|
||||||
WebkitLineClamp: 2,
|
|
||||||
WebkitBoxOrient: 'vertical',
|
|
||||||
overflow: 'hidden',
|
|
||||||
lineHeight: 1.2
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cleanProductName(product.name)
|
cleanProductName(product.name)
|
||||||
)
|
|
||||||
),
|
),
|
||||||
// Manufacturer if available
|
// Manufacturer if available
|
||||||
React.createElement(
|
React.createElement(
|
||||||
|
|||||||
Reference in New Issue
Block a user