diff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css index a811aaa720..b9b512c085 100644 --- a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css +++ b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css @@ -45,3 +45,12 @@ .option-row.centered { justify-content: center; } + +.option-row.full-width { + flex-direction: column; + align-items: stretch; +} + +.option-row.full-width .option-row-input { + flex-shrink: unset; +} diff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsx b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsx index 92f0c04315..3a6dbaca4e 100644 --- a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsx +++ b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.tsx @@ -8,14 +8,15 @@ interface OptionsRowProps { description?: string; children: VNode; centered?: boolean; + fullWidth?: boolean; } -export default function OptionsRow({ name, label, description, children, centered }: OptionsRowProps) { +export default function OptionsRow({ name, label, description, children, centered, fullWidth }: OptionsRowProps) { const id = useUniqueName(name); const childWithId = cloneElement(children, { id }); return ( -
+
{label && } {description && {description}} diff --git a/apps/client/src/widgets/type_widgets/options/spellcheck.tsx b/apps/client/src/widgets/type_widgets/options/spellcheck.tsx index d602f6c0a6..5949e820ce 100644 --- a/apps/client/src/widgets/type_widgets/options/spellcheck.tsx +++ b/apps/client/src/widgets/type_widgets/options/spellcheck.tsx @@ -25,21 +25,19 @@ function ElectronSpellcheckSettings() { const [ spellCheckEnabled, setSpellCheckEnabled ] = useTriliumOptionBool("spellCheckEnabled"); return ( - <> - - {t("spellcheck.restart-required")} + + {t("spellcheck.restart-required")} - - - - + + + {spellCheckEnabled && } - + ); } @@ -74,7 +72,7 @@ function SpellcheckLanguages() { }, []); return ( - + - + ); }