Display printable tape width
This commit is contained in:
@@ -9,6 +9,7 @@ const fields = {
|
||||
frame: document.getElementById("mobileFrame"),
|
||||
tapeInfo: document.getElementById("mobileTapeInfo"),
|
||||
tapeInfoType: document.getElementById("mobileTapeInfoType"),
|
||||
tapePrintableWidth: document.getElementById("mobileTapePrintableWidth"),
|
||||
tapeBgSwatch: document.getElementById("mobileTapeBgSwatch"),
|
||||
tapeBgText: document.getElementById("mobileTapeBgText"),
|
||||
tapeTextSwatch: document.getElementById("mobileTapeTextSwatch"),
|
||||
@@ -36,6 +37,7 @@ function updateTapeInfo(info) {
|
||||
const bg = info.tapeColor || { name: "Unbekannt", css: "#d1d5db" };
|
||||
const text = info.textColor || { name: "Unbekannt", css: "#111111" };
|
||||
fields.tapeInfoType.textContent = `${info.width} mm · ${media}${info.mediaType?.code ? ` (${info.mediaType.code})` : ""}`;
|
||||
fields.tapePrintableWidth.textContent = info.printableWidthPx ? `${info.printableWidthPx} px` : "-";
|
||||
fields.tapeBgText.textContent = `${bg.name}${bg.code ? ` (${bg.code})` : ""}`;
|
||||
fields.tapeBgSwatch.style.background = bg.css;
|
||||
fields.tapeTextText.textContent = `${text.name}${text.code ? ` (${text.code})` : ""}`;
|
||||
|
||||
Reference in New Issue
Block a user