This commit is contained in:
seb
2026-10-18 15:35:58 +02:00
parent 3df8c5e9c7
commit 5644678b7d
2 changed files with 32 additions and 14 deletions

View File

@@ -1,8 +1,9 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="de" class="notranslate" translate="no">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="google" content="notranslate" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>QuixPOS * Management Interface</title> <title>QuixPOS * Management Interface</title>

View File

@@ -202,8 +202,11 @@ class ResultRow extends Component {
height: '20px', height: '20px',
}} }}
> >
{(row.brand?.name || row.brandName) && ( {(row.brand?.name || row.brandName) ? (
<> <Box
component="span"
sx={{ display: 'inline-flex', alignItems: 'center', gap: 0.5, flexShrink: 0 }}
>
<BrandLabel <BrandLabel
brand={row.brand || { name: row.brandName, thumbHash: row.brandThumbHash }} brand={row.brand || { name: row.brandName, thumbHash: row.brandThumbHash }}
name={row.brand?.name || row.brandName} name={row.brand?.name || row.brandName}
@@ -215,13 +218,18 @@ class ResultRow extends Component {
noWrap: true, noWrap: true,
}} }}
/> />
{' · '} <span>·</span>
</> </Box>
)} ) : null}
<Box component="span" sx={{ flexShrink: 0 }}>
{row.sku} {row.sku}
{' · '} </Box>
<Box component="span" sx={{ flexShrink: 0 }}>
·
</Box>
<Box <Box
component="span" component="span"
sx={{ flexShrink: 0 }}
title={ title={
row.warehouses?.length > 0 row.warehouses?.length > 0
? row.warehouses.map((w) => `${w.name || 'Lager'}: ${formatStock(w.stock)}`).join(' · ') ? row.warehouses.map((w) => `${w.name || 'Lager'}: ${formatStock(w.stock)}`).join(' · ')
@@ -230,11 +238,20 @@ class ResultRow extends Component {
> >
Bestand {formatStock(row.stock)} Bestand {formatStock(row.stock)}
</Box> </Box>
{' · '} <Box component="span" sx={{ flexShrink: 0 }}>
·
</Box>
<Box component="span" sx={{ flexShrink: 0 }}>
Verfügbar {formatStock(row.available)} Verfügbar {formatStock(row.available)}
{row.categories </Box>
? ` · ${formatCategoryList(row.categories, categoryFacets ?? {})}` {row.categories ? (
: ''} <Box
component="span"
sx={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}
>
{` · ${formatCategoryList(row.categories, categoryFacets ?? {})}`}
</Box>
) : null}
</Typography> </Typography>
} }
slotProps={{ primary: { fontWeight: 500, noWrap: true } }} slotProps={{ primary: { fontWeight: 500, noWrap: true } }}
@@ -1028,7 +1045,7 @@ class ArtikelSearchPage extends Component {
<PanelTile minHeight={0} sx={{ pb: 0 }}> <PanelTile minHeight={0} sx={{ pb: 0 }}>
<FillSpace <FillSpace
ref={this.fillSpaceRef} ref={this.fillSpaceRef}
aboveRef={[this.filterHeaderRef]} aboveRef={this.filterHeaderRef}
items={rows} items={rows}
renderItem={ResultRow} renderItem={ResultRow}
reserveBottom={32} reserveBottom={32}