Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(documents): load the PDF annotation layer styles so previews have no blank page under each page
aashuc97d9e5496c5
diff --git a/apps/erp/app/modules/documents/ui/Documents/PdfViewer.tsx b/apps/erp/app/modules/documents/ui/Documents/PdfViewer.tsxindex 5d9e24aa5a..0a4d9fb1dc 100644--- a/apps/erp/app/modules/documents/ui/Documents/PdfViewer.tsx+++ b/apps/erp/app/modules/documents/ui/Documents/PdfViewer.tsx@@ -6,6 +6,9 @@ import { registerReactPdfWorker } from "@carbon/files/pdf/worker";import { Skeleton } from "@carbon/react";import { useState } from "react";import { Document, Page, pdfjs } from "react-pdf";+// Without its stylesheet the annotation layer sits in normal flow under the+// canvas and adds a blank page-sized gap below every page.+import "react-pdf/dist/Page/AnnotationLayer.css";// Registered here, not in the client entry: this module is lazy, so the PDF// engine stays out of every page that shows no PDF.