diff --git a/index.html b/index.html index 7a77904..37e5cc4 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,9 @@ - + + QuixPOS * Management Interface diff --git a/src/routes/artikel.jsx b/src/routes/artikel.jsx index 57966fc..2bd7738 100644 --- a/src/routes/artikel.jsx +++ b/src/routes/artikel.jsx @@ -202,8 +202,11 @@ class ResultRow extends Component { height: '20px', }} > - {(row.brand?.name || row.brandName) && ( - <> + {(row.brand?.name || row.brandName) ? ( + - {' · '} - - )} - {row.sku} - {' · '} + · + + ) : null} + + {row.sku} + + + · + 0 ? row.warehouses.map((w) => `${w.name || 'Lager'}: ${formatStock(w.stock)}`).join(' · ') @@ -230,11 +238,20 @@ class ResultRow extends Component { > Bestand {formatStock(row.stock)} - {' · '} - Verfügbar {formatStock(row.available)} - {row.categories - ? ` · ${formatCategoryList(row.categories, categoryFacets ?? {})}` - : ''} + + · + + + Verfügbar {formatStock(row.available)} + + {row.categories ? ( + + {` · ${formatCategoryList(row.categories, categoryFacets ?? {})}`} + + ) : null} } slotProps={{ primary: { fontWeight: 500, noWrap: true } }} @@ -1028,7 +1045,7 @@ class ArtikelSearchPage extends Component {