Label: voltage|Hz separator, barcode left of ID
Deploy to LXC / deploy (push) Successful in 19s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 10:18:14 +07:00
parent 3d590ff685
commit e7638d5268
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -47,15 +47,15 @@
{/if} {/if}
{#if label.voltage || label.frequency} {#if label.voltage || label.frequency}
<div style="font-size: 6pt; color: #666;"> <div style="font-size: 6pt; color: #666;">
{[label.voltage, label.frequency].filter(Boolean).join(' / ')} {[label.voltage, label.frequency].filter(Boolean).join(' | ')}
</div> </div>
{/if} {/if}
</div> </div>
<div style="display: flex; align-items: center; gap: 2mm; margin-top: 1mm;"> <div style="display: flex; align-items: center; gap: 2mm; margin-top: 1mm;">
<img src={label.barcodeDataUrl} alt={label.shortId} style="height: 5mm; width: auto; max-width: 35mm;" />
<div style="font-size: 9pt; font-weight: bold; color: #000; letter-spacing: 1.5px;"> <div style="font-size: 9pt; font-weight: bold; color: #000; letter-spacing: 1.5px;">
{label.shortId} {label.shortId}
</div> </div>
<img src={label.barcodeDataUrl} alt={label.shortId} style="height: 5mm; width: auto; max-width: 35mm;" />
</div> </div>
</div> </div>
</div> </div>
@@ -54,10 +54,10 @@
{/if} {/if}
</div> </div>
<div style="display: flex; align-items: center; gap: 2mm; margin-top: 1mm;"> <div style="display: flex; align-items: center; gap: 2mm; margin-top: 1mm;">
<img src={data.barcodeDataUrl} alt={data.shortId} style="height: 5mm; width: auto; max-width: 35mm;" />
<div style="font-size: 9pt; font-weight: bold; color: #000; letter-spacing: 1.5px;"> <div style="font-size: 9pt; font-weight: bold; color: #000; letter-spacing: 1.5px;">
{data.shortId} {data.shortId}
</div> </div>
<img src={data.barcodeDataUrl} alt={data.shortId} style="height: 5mm; width: auto; max-width: 35mm;" />
</div> </div>
</div> </div>
</div> </div>
@@ -55,15 +55,15 @@
{/if} {/if}
{#if data.device.voltage || data.device.frequency} {#if data.device.voltage || data.device.frequency}
<div style="font-size: 6pt; color: #666;"> <div style="font-size: 6pt; color: #666;">
{[data.device.voltage, data.device.frequency].filter(Boolean).join(' / ')} {[data.device.voltage, data.device.frequency].filter(Boolean).join(' | ')}
</div> </div>
{/if} {/if}
</div> </div>
<div style="display: flex; align-items: center; gap: 2mm; margin-top: 1mm;"> <div style="display: flex; align-items: center; gap: 2mm; margin-top: 1mm;">
<img src={data.barcodeDataUrl} alt={data.shortId} style="height: 5mm; width: auto; max-width: 35mm;" />
<div style="font-size: 9pt; font-weight: bold; color: #000; letter-spacing: 1.5px;"> <div style="font-size: 9pt; font-weight: bold; color: #000; letter-spacing: 1.5px;">
{data.shortId} {data.shortId}
</div> </div>
<img src={data.barcodeDataUrl} alt={data.shortId} style="height: 5mm; width: auto; max-width: 35mm;" />
</div> </div>
</div> </div>
</div> </div>