mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 01:06:00 +02:00
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:
@@ -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")}
|
||||
|
||||
@@ -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" : ""}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user