fix: restrict blind direction reversal to 3D appearance

This commit is contained in:
jhartworks committed 2026-11-10 10:31:41 +01:00
1 parent b9a095bc6e
commit 7a9b2c0a38
19 files changed
+721 -629

No files matched your search

@@ -185,6 +185,7 @@ function blindFields(host: EditorHost, o: Opening, actions: OpeningActions, list
${o.cover2 && o.cover2 !== "none" ? entityField(host, t("cover2_tilt_entity"), o.cover2_tilt ?? null, undefined, lists.covers, (v) => actions.update({ cover2_tilt: noneAsNull(v) })) : nothing}
${o.cover2 && o.cover2 !== "none" ? html`${checkField(host, t("cover2_direction_invert"), !!o.cover2_inverted, (on) => actions.update({ cover2_inverted: on || undefined }))}${checkField(host, t("cover2_tilt_direction_invert"), !!o.cover2_tilt_inverted, (on) => actions.update({ cover2_tilt_inverted: on || undefined }))}` : nothing}
${numberField(host, t("cover_my"), o.my_position ?? 0, (v) => actions.update({ my_position: v > 0 ? Math.min(100, Math.round(v)) : null }), 5, 0)}
${hint(t("cover_direction_hint"), "nf-wide")}
${hint(t("blind_hint"), "nf-wide")}`
: nothing}`;
}