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

View File

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