move QR
authorChris Ellis <chris@intrbiz.com>
Sat, 6 Sep 2025 11:15:19 +0000 (12:15 +0100)
committerChris Ellis <chris@intrbiz.com>
Sat, 6 Sep 2025 11:15:19 +0000 (12:15 +0100)
templates/badge.json

index 430b10549bc592965698eaa5836fdea06a235018..32a681e06ca1231260cacf5f84ea214487556c07 100644 (file)
        {### Name ###}
        {############}
 
-       {"type": "paragraph", "text": "{{ reg.firstname|escapejson }} {{ reg.lastname|escapejson }}", "x": {{ badgex + 4 }}, "y": {{ badgey + 107 }}, "width": {{ badgewidth - 8 - 18 }}, "height": 10, "bold": false}
+       {"type": "paragraph", "text": "{{ reg.firstname|escapejson }} {{ reg.lastname|escapejson }}", "x": {{ badgex + 5 }}, "y": {{ badgey + 107 }}, "width": {{ badgewidth - 13 - 18 }}, "height": 10, "bold": false}
 
        {###############}
        {### Company ###}
        {###############}
 
        {% if reg.company %}
-       ,{"type": "paragraph", "text": "{{ reg.company|escapejson }}", "x": {{ badgex + 4 }}, "y": {{ badgey + 119 }}, "width": {{ badgewidth - 8 }}, "height": 8, "maxsize": 14}
+       ,{"type": "paragraph", "text": "{{ reg.company|escapejson }}", "x": {{ badgex + 5 }}, "y": {{ badgey + 119 }}, "width": {{ badgewidth - 13 - 18 }}, "height": 8, "maxsize": 14}
        {% endif %}
 
        {###############}
@@ -60,7 +60,7 @@
        {###############}
 
        {% if reg.id != 0 %}
-       ,{"type": "qrimage", "fill": "red", "x": {{ badgex + 86 }}, "y": {{ badgey + 107 }}, "width": 18, "height": 18, "qrcontent": "{{ reg.fullpublictoken }}"}
+       ,{"type": "qrimage", "fill": "red", "x": {{ badgex + 81 }}, "y": {{ badgey + 107 }}, "width": 18, "height": 18, "qrcontent": "{{ reg.fullpublictoken }}"}
        {% endif %}
    ]
 }