From 72c5dfbbebbf563fa646b6bc7c75045ac5e5ee62 Mon Sep 17 00:00:00 2001 From: Mathias Malmqvist Date: Sat, 27 Sep 2025 00:17:03 +0200 Subject: [PATCH] Add buttons for quick-calibrating from the finetune dialog --- css/finetune.css | 5 +++ index.html | 2 +- js/core.js | 31 +++++++++----- js/modals/calib-center-modal.js | 35 ++++++++-------- js/modals/calib-range-modal.js | 9 ++--- js/modals/finetune-modal.js | 72 ++++++++++++++++++++++++++++++--- templates/calibrate-modal.html | 2 +- templates/finetune-modal.html | 17 +++++++- 8 files changed, 130 insertions(+), 43 deletions(-) diff --git a/css/finetune.css b/css/finetune.css index beeca9d..73f5f8a 100644 --- a/css/finetune.css +++ b/css/finetune.css @@ -89,6 +89,11 @@ input[id^="finetune"] { display: none; } +/* Hide spacers when raw numbers are hidden */ +#finetuneModal.hide-raw-numbers .spacer.hide-raw-numbers { + display: none; +} + /* Adjust grid layout when raw numbers are hidden - center the canvas */ #finetuneModal.hide-raw-numbers .finetune-grid { grid-template-columns: 1fr; diff --git a/index.html b/index.html index fd74626..106143b 100644 --- a/index.html +++ b/index.html @@ -156,7 +156,7 @@ 1. Calibrate stick center + +