From 2af7504c01e01e4711b865fe08d56ac48a1d3fec Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Sep 2024 22:23:32 +0200 Subject: [PATCH] update label width --- app.py | 12 ++++++------ printer_info.py | 3 ++- templates/image.html | 2 +- templates/text.html | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app.py b/app.py index b541dc7..633e74a 100644 --- a/app.py +++ b/app.py @@ -22,26 +22,26 @@ templates = { "DNH": { "text1": { "string": "Do Not Hack", - "size": 50, + "size": 130, "pos": 0 }, "text2": { "string": "bottom text", - "size": 25, - "pos": 55 + "size": 50, + "pos": 130 }, "cut": True }, "Food": { "text1": { "string": "Nickname", - "size": 50, + "size": 130, "pos": 0 }, "text2": { "string": "", - "size": 25, - "pos": 55 + "size": 50, + "pos": 130 }, "cut": True } diff --git a/printer_info.py b/printer_info.py index 2e1a688..4edbee5 100644 --- a/printer_info.py +++ b/printer_info.py @@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-3.0-or-later -label_width = 100 + +label_width = 213 printer_width = 512 diff --git a/templates/image.html b/templates/image.html index 5e44d66..b5be4f7 100644 --- a/templates/image.html +++ b/templates/image.html @@ -10,7 +10,7 @@ {% if filename %}

- Uploaded image + Uploaded image
{% if cut %} diff --git a/templates/text.html b/templates/text.html index aff7bf9..d4663d8 100644 --- a/templates/text.html +++ b/templates/text.html @@ -34,7 +34,7 @@ {% if filename %}

- Generated Image + Generated Image {% if cut %}