Skip to content

Commit 1f4c647

Browse files
authored
Merge pull request #8 from shvyac/claude/review-repo-analysis-UcpLd
Adjust default height to 16px and font size to 100% of border box
2 parents 8f17f9e + 5c55046 commit 1f4c647

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

QSL_card_designer.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,9 @@ <h2>QSL Card Designer (QSLカードデザイナー)</h2>
554554
})
555555

556556
function adjustFieldFontSize(div, height) {
557-
const h = height || div.clientHeight || 28;
558-
// 高さに比例してフォントサイズを変更(ボーダーボックスより大きく
559-
const fontSize = h * 1.2;
557+
const h = height || div.clientHeight || 16;
558+
// 高さに比例してフォントサイズを変更(ボーダーボックスと同じサイズ
559+
const fontSize = h * 1.0;
560560
div.style.fontSize = fontSize + 'px';
561561
}
562562

@@ -594,13 +594,13 @@ <h2>QSL Card Designer (QSLカードデザイナー)</h2>
594594
designerFields.forEach((f) => {
595595
const v = (rec[f.name] !== undefined ? rec[f.name] : "");
596596
const w = f.width || 160;
597-
const h = f.height || 28;
597+
const h = f.height || 16;
598598
const x = f.x || 0;
599599
const y = f.y || 0;
600-
600+
601601
// フィールドの背景(透明なのでスキップ)
602602
// テキストを描画
603-
const fontSize = h * 1.2;
603+
const fontSize = h * 1.0;
604604

605605
// フォント設定(無線局コールサインと相手局の場合のみカスタムフォント)
606606
let fontFamily = 'Arial, Meiryo, sans-serif';

0 commit comments

Comments
 (0)