sag_components 1.0.17 → 1.0.18

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.
@@ -44,10 +44,15 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
44
44
  };
45
45
  return /*#__PURE__*/_react.default.createElement(_OneColumnContainer.StyledContainer, {
46
46
  className: (0, _classnames.default)(itemClass, overStyle, draggingStyle, droppedStyle),
47
- innerRef: nodeRef,
48
47
  width: width,
49
48
  height: height
50
- }, children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
49
+ }, /*#__PURE__*/_react.default.createElement("div", {
50
+ ref: nodeRef,
51
+ style: {
52
+ width: fit - content,
53
+ height: fit - content
54
+ }
55
+ }, children), /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
51
56
  clicked: clicked,
52
57
  width: width,
53
58
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -22,8 +22,13 @@ export const OneColumnContainer = ({ children,nodeRef,itemClass,overStyle,draggi
22
22
  overStyle,
23
23
  draggingStyle,
24
24
  droppedStyle
25
- )} innerRef={nodeRef} width={width} height={height}>
25
+ )} width={width} height={height}>
26
+ <div ref={nodeRef} style={{
27
+ width: fit-content,
28
+ height: fit-content
29
+ }}>
26
30
  {children}
31
+ </div>
27
32
  <InfoTextContainer clicked={clicked} width={width} height={height}>
28
33
  <InfoTextLabel>{infoText}</InfoTextLabel>
29
34
  </InfoTextContainer>