@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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
- width: 100%;
107
- height: 100%;
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>`