From upstream issue: QR code takes 50% width even when not needed, wastes label space. Fixed 2mm padding also causes issues on label printers.
When trying to print labels with QR codes, the QR code seems to take up half the width of the label, even if it doesnt need to. As Im printing on a label printer, Id rather not make them any longer than needed.
## Problem
From upstream issue: QR code takes 50% width even when not needed, wastes label space. Fixed 2mm padding also causes issues on label printers.
> When trying to print labels with QR codes, the QR code seems to take up half the width of the label, even if it doesnt need to. As Im printing on a label printer, Id rather not make them any longer than needed.
## Solution
### 1. Remove fixed 50% constraint
In `qrCodePrintingDialog.tsx` line 171:
```css
// From:
max-width: ${showContent ? "50%" : "100%"};
// To:
max-width: fit-content;
flex-shrink: 0;
```
### 2. Configurable QR padding
Add setting to `QRCodePrintSettings` interface:
```typescript
qrCodePadding?: number; // in mm, default 2
```
Add slider in settings UI for 0-5mm padding.
### 3. Optional: Explicit QR size control
```typescript
qrCodeSize?: number; // in mm, 0 = auto
```
## Files to modify:
- `client/src/pages/printing/qrCodePrintingDialog.tsx`
- `client/src/pages/printing/printing.tsx`
## Priority
Medium - addresses existing upstream issue
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
From upstream issue: QR code takes 50% width even when not needed, wastes label space. Fixed 2mm padding also causes issues on label printers.
Solution
1. Remove fixed 50% constraint
In
qrCodePrintingDialog.tsxline 171:2. Configurable QR padding
Add setting to
QRCodePrintSettingsinterface:Add slider in settings UI for 0-5mm padding.
3. Optional: Explicit QR size control
Files to modify:
client/src/pages/printing/qrCodePrintingDialog.tsxclient/src/pages/printing/printing.tsxPriority
Medium - addresses existing upstream issue