mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-14 23:07:01 +10:00
fix clipping of heading issue on lapras template
This commit is contained in:
@@ -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",
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user