This commit is contained in:
seb
2026-11-01 00:47:29 +01:00
parent b7046d3bc6
commit e788c960d5
2 changed files with 4 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ export default class OnlinePrinterIcons extends PureComponent {
gap: { xs: 0.5, lg: 1 }, gap: { xs: 0.5, lg: 1 },
}} }}
> >
{onlinePrinters.map((p) => { {onlinePrinters.map((p, index) => {
const hasError = Boolean( const hasError = Boolean(
p.error || p.open || p.live?.errors?.other || p.live?.errors?.headOpen, p.error || p.open || p.live?.errors?.other || p.live?.errors?.headOpen,
); );
@@ -203,7 +203,9 @@ export default class OnlinePrinterIcons extends PureComponent {
return ( return (
<IconButton <IconButton
key={p.id || p.serial || index}
onClick={(e) => this.handleOpenMenu(e, p)} onClick={(e) => this.handleOpenMenu(e, p)}
title={tooltipTitle}
sx={(theme) => ({ sx={(theme) => ({
p: 0, p: 0,
width: 32, width: 32,

View File

@@ -201,7 +201,7 @@ export default class ArticleLabelTab extends PureComponent {
{templates.map((t) => { {templates.map((t) => {
const isSelected = t.id === selectedTemplateId; const isSelected = t.id === selectedTemplateId;
return ( return (
<Grid item xs={12} sm={6} md={4} key={t.id}> <Grid size={{ xs: 12, sm: 6, md: 4 }} key={t.id}>
<Paper <Paper
variant="outlined" variant="outlined"
onClick={() => this.setState({ selectedTemplateId: t.id })} onClick={() => this.setState({ selectedTemplateId: t.id })}