Skip to content

Commit d87b318

Browse files
committed
Display preview area size as integer pixels
Changed updatePreviewSize() to round cardWidth and cardHeight to integers using Math.round() for cleaner display (e.g., 725×469 instead of 725.1953125×468.774979202835565)
1 parent 81cac6d commit d87b318

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

QSL_card_designer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,9 @@ <h2>QSL Card Designer (QSLカードデザイナー)</h2>
619619

620620
function updatePreviewSize() {
621621
const sizeText = document.getElementById('previewSize');
622-
sizeText.textContent = `Preview Area (プレビューエリア) (${cardWidth}×${cardHeight} px)`;
622+
const w = Math.round(cardWidth);
623+
const h = Math.round(cardHeight);
624+
sizeText.textContent = `Preview Area (プレビューエリア) (${w}×${h} px)`;
623625
}
624626

625627
// On window resize (for bg images)

0 commit comments

Comments
 (0)