diff --git a/theatre/core/src/propTypes/index.ts b/theatre/core/src/propTypes/index.ts index b82e81b..2af27c8 100644 --- a/theatre/core/src/propTypes/index.ts +++ b/theatre/core/src/propTypes/index.ts @@ -734,7 +734,6 @@ const defaultNumberNudgeFn: NumberNudgeFn = ({ magnitude, }) => { const {range} = config - console.log(deltaX, deltaFraction, config) if ( !config.nudgeMultiplier && diff --git a/theatre/studio/src/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.tsx b/theatre/studio/src/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.tsx index 8e7ca48..325ddd1 100644 --- a/theatre/studio/src/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.tsx +++ b/theatre/studio/src/panels/DetailPanel/DeterminePropEditorForDetail/DetailCompoundPropEditor.tsx @@ -50,7 +50,6 @@ const Padding = styled.div` padding-left: ${rowIndentationFormulaCSS}; display: flex; align-items: center; - width: calc(100% - var(--right-width)); ` const PropName = deriver(styled.div<{isHighlighted: PropHighlighted}>` @@ -179,13 +178,11 @@ function DetailCompoundPropEditor< if (!collapsedMap.has(globalPointerPath)) { collapsedMap.set(globalPointerPath, new Atom(isVectorProp(propConfig))) } - }, []) + }, [globalPointerPath, propConfig]) const box = collapsedMap.get(globalPointerPath) const isCollapsed = usePrism(() => { - const box = collapsedMap.get(globalPointerPath) - return box ? val(box.pointer) : isVectorProp(propConfig) }, [box])