This commit is contained in:
EthanHealy01 2025-09-12 18:01:08 +01:00
parent 6c18c46681
commit 30004b656b
2 changed files with 1 additions and 2 deletions

View File

@ -187,7 +187,6 @@ export default function StampPreview({ parameters, onParameterChange, file, show
if (drag.type === 'resize') { if (drag.type === 'resize') {
// Height is our canonical size (fontSize) // Height is our canonical size (fontSize)
const widthPts = pageSize?.widthPts ?? 595.28;
const heightPts = pageSize?.heightPts ?? 841.89; const heightPts = pageSize?.heightPts ?? 841.89;
const scaleY = containerSize.height / heightPts; const scaleY = containerSize.height / heightPts;
const newHeightPx = Math.max(1, drag.initHeight + (y - drag.startY)); const newHeightPx = Math.max(1, drag.initHeight + (y - drag.startY));

View File

@ -56,7 +56,7 @@ export function computeStampPreviewStyle(
pageSize: PageSizePts, pageSize: PageSizePts,
containerSize: ContainerSize, containerSize: ContainerSize,
showQuickGrid: boolean | undefined, showQuickGrid: boolean | undefined,
hoverTile: number | null, _hoverTile: number | null,
hasPageThumbnail: boolean hasPageThumbnail: boolean
): StampPreviewStyle { ): StampPreviewStyle {
const pageWidthPx = containerSize.width; const pageWidthPx = containerSize.width;