This commit is contained in:
seb
2026-10-10 22:38:29 +02:00
parent d5aca2b183
commit d32e790540

View File

@@ -34,22 +34,27 @@ class ArtikelMarkenSearchField extends PureComponent {
clearInput() { clearInput() {
this.setState({ input: '' }); this.setState({ input: '' });
} }
render() { render() {
const { inputRef } = this.props; const { inputRef } = this.props;
return ( return (
<PanelTileGrid sx={{ mb: 2 }}>
<Box <Box
ref={inputRef} ref={inputRef}
sx={{ sx={{
mb: 2, gridColumn: {
xs: '1 / -1',
sm: 'span 2',
md: 'span 2',
},
display: 'flex', display: 'flex',
flexDirection: 'column',
gap: 1.5, gap: 1.5,
alignItems: 'center',
minHeight: 40,
}} }}
> >
<TextField <TextField
sx={{ maxWidth: 520, flexGrow: 1 }} sx={{ width: '100%' }}
autoFocus autoFocus
autoComplete="off" autoComplete="off"
value={this.state.input} value={this.state.input}
@@ -81,7 +86,9 @@ class ArtikelMarkenSearchField extends PureComponent {
}, },
}} }}
/> />
<ArtikelMarkeNew />
</Box> </Box>
</PanelTileGrid>
); );
} }
} }
@@ -95,7 +102,6 @@ class ArtikelMarkenPage extends PureComponent {
brands: brandAutomat.state.brands, brands: brandAutomat.state.brands,
}; };
this.searchRef = createRef(); this.searchRef = createRef();
this.createRowRef = createRef();
this.handleRetry = this.handleRetry.bind(this); this.handleRetry = this.handleRetry.bind(this);
} }
@@ -140,15 +146,12 @@ class ArtikelMarkenPage extends PureComponent {
<PanelTile wide={2} minHeight={0} color={PURPLE_PANEL} sx={{ pb: 0 }}> <PanelTile wide={2} minHeight={0} color={PURPLE_PANEL} sx={{ pb: 0 }}>
<FillSpace <FillSpace
aboveRef={[this.searchRef]} aboveRef={[this.searchRef]}
belowRef={this.createRowRef}
reserveBottom={32} reserveBottom={32}
minPageSize={8} minPageSize={8}
minHeight={0} minHeight={0}
items={brands} items={brands}
renderItem={ArtikelMarke} renderItem={ArtikelMarke}
/> />
<ArtikelMarkeNew rowRef={this.createRowRef} />
</PanelTile> </PanelTile>
</PanelTileGrid> </PanelTileGrid>
</> </>