From fda4b59e58200f91d21bc0fcc8a04a43b75e6f08 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Sun, 23 Nov 2025 22:28:03 +0100 Subject: [PATCH] (refactor) PrintPreview: fixing Pdf417Barcode margin & size --- app/ui/Pdf417Barcode.tsx | 1 - app/ui/PrintPreview.tsx | 16 ++-------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/app/ui/Pdf417Barcode.tsx b/app/ui/Pdf417Barcode.tsx index fa24a72..2a4f769 100644 --- a/app/ui/Pdf417Barcode.tsx +++ b/app/ui/Pdf417Barcode.tsx @@ -3,7 +3,6 @@ import { useState, useEffect, FC } from 'react'; import { generateBarcode } from '../lib/pdf/pdf417'; import { renderBarcode } from '../lib/pdf/renderBarcode'; -import { EncodePayment, PaymentParams } from 'hub-3a-payment-encoder'; export const Pdf417Barcode:FC<{hub3aText:string, className?: string}> = ({hub3aText: hub3a_text, className}) => { const [bitmapData, setBitmapData] = useState(undefined); diff --git a/app/ui/PrintPreview.tsx b/app/ui/PrintPreview.tsx index 5d6c463..7f1d0fa 100644 --- a/app/ui/PrintPreview.tsx +++ b/app/ui/PrintPreview.tsx @@ -37,13 +37,6 @@ export const PrintPreview: React.FC = ({ data, year, month, t print-color-adjust: exact !important; } - .print-barcode-img { - width: 69.6mm !important; - max-width: 69.6mm !important; - height: auto !important; - max-height: 85px !important; - } - .print-table { page-break-inside: avoid; } @@ -79,10 +72,6 @@ export const PrintPreview: React.FC = ({ data, year, month, t .print-table thead tr { background: #f5f5f5 !important; } - - .print-table td img { - margin: 5em auto; - } } `} @@ -144,15 +133,14 @@ export const PrintPreview: React.FC = ({ data, year, month, t
{ item.hub3aText ? - + : ( // LEGACY SUPPORT ... untill all bills have been migrated item.barcodeImage ? {`Barcode : null ) }