@rpg-engine/long-bow 0.1.73 → 0.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/long-bow.cjs.development.js +11 -4
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +11 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DraggableContainer.tsx +4 -7
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ export const DraggableContainer: React.FC<IDraggableContainerProps> = ({
|
|
|
55
55
|
}, []);
|
|
56
56
|
|
|
57
57
|
return (
|
|
58
|
-
<DraggableRef ref={draggableRef}>
|
|
58
|
+
<DraggableRef ref={draggableRef} width={width} height={height || 'auto'}>
|
|
59
59
|
<Draggable
|
|
60
60
|
cancel={`.container-close,${cancelDrag}`}
|
|
61
61
|
onDrag={(_e, data: DraggableData) => {
|
|
@@ -102,12 +102,9 @@ interface IContainerProps {
|
|
|
102
102
|
height: string;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
const DraggableRef = styled.div
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
display: flex;
|
|
109
|
-
justify-content: center;
|
|
110
|
-
align-items: center;
|
|
105
|
+
const DraggableRef = styled.div<IContainerProps>`
|
|
106
|
+
height: ${props => props.height};
|
|
107
|
+
width: ${({ width }) => width};
|
|
111
108
|
`;
|
|
112
109
|
|
|
113
110
|
const Container = styled.div<IContainerProps>`
|