fix(options): automatic read-only size confused with OTP by KeepassXC

See https://github.com/keepassxreboot/keepassxc-browser/issues/2282
This commit is contained in:
Elian Doran
2026-04-13 18:12:22 +03:00
parent 1765917393
commit ae676f38d3
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ function Editor({ wordWrapping, setWordWrapping }: EditorProps) {
onChange={setWordWrapping}
/>
<OptionsRow name="auto-readonly-size-code" label={t("code_auto_read_only_size.label")} description={t("text_auto_read_only_size.description")}>
<OptionsRow name="source-readonly-threshold" label={t("code_auto_read_only_size.label")} description={t("text_auto_read_only_size.description")}>
<FormTextBoxWithUnit
type="number" min={0}
unit={t("text_auto_read_only_size.unit")}

View File

@@ -17,7 +17,7 @@ interface OptionsRowProps {
export default function OptionsRow({ name, label, description, children, centered, stacked }: OptionsRowProps) {
const id = useUniqueName(name);
const childWithId = cloneElement(children, { id });
const childWithId = cloneElement(children, { id, name });
const className = `option-row ${centered ? "centered" : ""} ${stacked ? "stacked" : ""}`;