From 6ff7219300d72c57978e124a8b37a033d9e3c8b4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 13 Apr 2026 16:22:06 +0300 Subject: [PATCH] chore(options/text): use options row for code blocks --- .../type_widgets/options/text_notes.tsx | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/apps/client/src/widgets/type_widgets/options/text_notes.tsx b/apps/client/src/widgets/type_widgets/options/text_notes.tsx index db33e58cb0..b9ade4c56a 100644 --- a/apps/client/src/widgets/type_widgets/options/text_notes.tsx +++ b/apps/client/src/widgets/type_widgets/options/text_notes.tsx @@ -9,7 +9,6 @@ import { isExperimentalFeatureEnabled } from "../../../services/experimental_fea import { t } from "../../../services/i18n"; import { ensureMimeTypesForHighlighting, loadHighlightingTheme } from "../../../services/syntax_highlight"; import { formatDateTime, toggleBodyClass } from "../../../services/utils"; -import Column from "../../react/Column"; import FormCheckbox from "../../react/FormCheckbox"; import FormGroup from "../../react/FormGroup"; import FormRadioGroup from "../../react/FormRadioGroup"; @@ -21,7 +20,7 @@ import KeyboardShortcut from "../../react/KeyboardShortcut"; import { getHtml } from "../../react/RawHtml"; import AutoReadOnlySize from "./components/AutoReadOnlySize"; import CheckboxList from "./components/CheckboxList"; -import { OptionsRowWithToggle } from "./components/OptionsRow"; +import OptionsRow, { OptionsRowWithToggle } from "./components/OptionsRow"; import OptionsSection from "./components/OptionsSection"; const isNewLayout = isExperimentalFeatureEnabled("new-layout"); @@ -172,26 +171,23 @@ function CodeBlockStyle() { return ( -
- - { - loadHighlightingTheme(newTheme); - setCodeBlockTheme(newTheme); - }} - /> - + + { + loadHighlightingTheme(newTheme); + setCodeBlockTheme(newTheme); + }} + /> + - - - -
+