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
This commit is contained in:
parent
fc17bc541b
commit
49bbb41e98
2 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ export default function ParameterComponent({
|
||||||
const updateNodeInternals = useUpdateNodeInternals();
|
const updateNodeInternals = useUpdateNodeInternals();
|
||||||
const [position, setPosition] = useState(0);
|
const [position, setPosition] = useState(0);
|
||||||
const { closePopUp } = useContext(PopUpContext);
|
const { closePopUp } = useContext(PopUpContext);
|
||||||
const { setTabsState, tabId } = useContext(TabsContext);
|
const { setTabsState, tabId, save } = useContext(TabsContext);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (ref.current && ref.current.offsetTop && ref.current.clientHeight) {
|
if (ref.current && ref.current.offsetTop && ref.current.clientHeight) {
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ export default function ModalField({
|
||||||
data.node.template[name].value = t;
|
data.node.template[name].value = t;
|
||||||
setEnabled(t);
|
setEnabled(t);
|
||||||
}}
|
}}
|
||||||
|
size="small"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : type === "float" ? (
|
) : type === "float" ? (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue