From 479e1fc446346a8d531cc4d7e49c90c74b6ac8ec Mon Sep 17 00:00:00 2001 From: sid597 Date: Mon, 25 Aug 2025 21:17:19 +0530 Subject: [PATCH] make tabs vertical, use a new textarea component to make it resizable, fix some lint warnings --- .../src/components/settings/NodeConfig.tsx | 84 +++++++++++++++---- 1 file changed, 70 insertions(+), 14 deletions(-) diff --git a/apps/roam/src/components/settings/NodeConfig.tsx b/apps/roam/src/components/settings/NodeConfig.tsx index 0b1bd5eca..f31be1a5b 100644 --- a/apps/roam/src/components/settings/NodeConfig.tsx +++ b/apps/roam/src/components/settings/NodeConfig.tsx @@ -6,7 +6,14 @@ import BlocksPanel from "roamjs-components/components/ConfigPanels/BlocksPanel"; import TextPanel from "roamjs-components/components/ConfigPanels/TextPanel"; import { getSubTree } from "roamjs-components/util"; import Description from "roamjs-components/components/Description"; -import { Label, Tabs, Tab, TabId, InputGroup } from "@blueprintjs/core"; +import { + Label, + Tabs, + Tab, + TabId, + InputGroup, + TextArea, +} from "@blueprintjs/core"; import DiscourseNodeSpecification from "./DiscourseNodeSpecification"; import DiscourseNodeAttributes from "./DiscourseNodeAttributes"; import DiscourseNodeCanvasSettings from "./DiscourseNodeCanvasSettings"; @@ -50,7 +57,40 @@ const ValidatedInputPanel = ({ ); -const useDebouncedRoamUpdater = ( +const ValidatedTextareaPanel = ({ + label, + description, + value, + onChange, + onBlur, + placeholder, +}: { + label: string; + description: string; + value: string; + onChange: (e: React.ChangeEvent) => void; + onBlur: () => void; + placeholder?: string; +}) => ( +
+