From 49bbb41e98d78d1a995e967d0bd9a243e78392d7 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 23 Jun 2023 17:29:26 -0300 Subject: [PATCH] feat(frontend): add size="small" to ModalField input to improve UI consistency feat(frontend): add save function to TabsContext to enable saving of changes made to tabs fix(frontend): add save function to TabsContext in ParameterComponent to enable saving of changes made to tabs --- .../GenericNode/components/parameterComponent/index.tsx | 2 +- .../src/modals/NodeModal/components/ModalField/index.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 2736dd22d..d33c5cc42 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -41,7 +41,7 @@ export default function ParameterComponent({ const updateNodeInternals = useUpdateNodeInternals(); const [position, setPosition] = useState(0); const { closePopUp } = useContext(PopUpContext); - const { setTabsState, tabId } = useContext(TabsContext); + const { setTabsState, tabId, save } = useContext(TabsContext); useEffect(() => { if (ref.current && ref.current.offsetTop && ref.current.clientHeight) { diff --git a/src/frontend/src/modals/NodeModal/components/ModalField/index.tsx b/src/frontend/src/modals/NodeModal/components/ModalField/index.tsx index f5f0fb668..a0b0c150c 100644 --- a/src/frontend/src/modals/NodeModal/components/ModalField/index.tsx +++ b/src/frontend/src/modals/NodeModal/components/ModalField/index.tsx @@ -101,6 +101,7 @@ export default function ModalField({ data.node.template[name].value = t; setEnabled(t); }} + size="small" /> ) : type === "float" ? (