fix clipping of heading issue on lapras template

This commit is contained in:
Amruth Pillai
2026-02-10 03:23:41 +01:00
parent eb62ed99ce
commit a80f86e99e
2 changed files with 4 additions and 1 deletions
@@ -14,6 +14,9 @@ const sectionClassName = cn(
// Section Heading
"[&>h6]:-mt-(--heading-negative-margin) [&>h6]:max-w-fit [&>h6]:bg-(--page-background-color) [&>h6]:px-4",
// Push the first section of a page down, to avoid clipping the header
"group-data-[layout=main]:first-of-type:mt-4",
);
/**
+1 -1
View File
@@ -173,7 +173,7 @@ export const printerService = {
? getComputedStyle(container).getPropertyValue("--page-height").trim()
: null;
const currentHeight = containerHeight || rootHeight;
const heightValue = Math.max(Number.parseFloat(currentHeight), minPageHeight);
const heightValue = Math.min(Number.parseFloat(currentHeight), minPageHeight);
if (!Number.isNaN(heightValue)) {
// Subtract top + bottom margins from page height