From fc214711313cd293bdd540911cbdd42b75baa74b Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Fri, 29 May 2026 02:52:46 +0330 Subject: [PATCH] =?UTF-8?q?Native=20thermal=20printing=20via=20iframe=20?= =?UTF-8?q?=E2=80=94=2080mm,=20RTL,=20no=20blank=20tail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: window.print() on the main page used A4 height (blank paper after receipt), no RTL direction, and Tailwind styles leaked into print. Solution — iframe isolation: - lib/thermal-print.ts: builds a self-contained HTML document (@page { size: 80mm auto; margin: 0 }, html { direction: rtl }) and fires it through a hidden off-screen