From b94b30e8648b31f6301c934da84aa11c2058c90c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 24 Dec 2025 15:51:26 +0200 Subject: [PATCH] fix(options): new layout shown in experimental options --- .../widgets/type_widgets/options/advanced.tsx | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/client/src/widgets/type_widgets/options/advanced.tsx b/apps/client/src/widgets/type_widgets/options/advanced.tsx index 4024a9d0e..c9d9b4a4f 100644 --- a/apps/client/src/widgets/type_widgets/options/advanced.tsx +++ b/apps/client/src/widgets/type_widgets/options/advanced.tsx @@ -1,15 +1,16 @@ import { AnonymizedDbResponse, DatabaseAnonymizeResponse, DatabaseCheckIntegrityResponse } from "@triliumnext/commons"; +import { useEffect, useMemo, useState } from "preact/hooks"; + +import { experimentalFeatures } from "../../../services/experimental_features"; import { t } from "../../../services/i18n"; import server from "../../../services/server"; import toast from "../../../services/toast"; import Button from "../../react/Button"; -import FormText from "../../react/FormText"; -import OptionsSection from "./components/OptionsSection" import Column from "../../react/Column"; -import { useEffect, useState } from "preact/hooks"; -import CheckboxList from "./components/CheckboxList"; -import { experimentalFeatures } from "../../../services/experimental_features"; +import FormText from "../../react/FormText"; import { useTriliumOptionJson } from "../../react/hooks"; +import CheckboxList from "./components/CheckboxList"; +import OptionsSection from "./components/OptionsSection"; export default function AdvancedSettings() { return <> @@ -73,7 +74,7 @@ function DatabaseIntegrityOptions() { }} /> - ) + ); } function DatabaseAnonymizationOptions() { @@ -127,7 +128,7 @@ function DatabaseAnonymizationOptions() {
- ) + ); } function DatabaseAnonymizationOption({ title, description, buttonText, buttonClick }: { title: string, description: string, buttonText: string, buttonClick: () => void }) { @@ -137,12 +138,12 @@ function DatabaseAnonymizationOption({ title, description, buttonText, buttonCli {description}