From 9f1105daf1ab24fb8148eb048aa6b9fb1abd36a3 Mon Sep 17 00:00:00 2001 From: Kyle VanderBeek Date: Tue, 12 Aug 2025 16:10:36 -0700 Subject: [PATCH] Get rid of disabled fields in BasicSettings. It feels better to arrive and see all fields working and no puzzle to solve. Instead, set the preset to "custom" whenever a preset parameter is changed (see 1074b77ec9cc0ef82cc1ef271913b796e4727282). --- src/BasicSettings.jsx | 1 - src/RatiosInput.jsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/BasicSettings.jsx b/src/BasicSettings.jsx index 9dde6f4..7cd1684 100644 --- a/src/BasicSettings.jsx +++ b/src/BasicSettings.jsx @@ -30,7 +30,6 @@ function BasicSettings({ hidden, role, store }) { label={t("guideangle")} type="number" value={store.guideline.angle} - disabled={store.ratio !== "custom"} onChange={(e) => store.setGuidelineAngle(e.target.value)} slotProps={{ input: { diff --git a/src/RatiosInput.jsx b/src/RatiosInput.jsx index 6392eb2..069c108 100644 --- a/src/RatiosInput.jsx +++ b/src/RatiosInput.jsx @@ -22,7 +22,6 @@ function RatiosInput({ store }) { store.setRatio(i, e.target.value)} style={{ marginTop: 16, width: 60 }} />