sag_components 1.0.18 → 1.0.20

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.
@@ -42,17 +42,17 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
42
42
  var onInfoClick = function onInfoClick() {
43
43
  setClicked(!clicked);
44
44
  };
45
- return /*#__PURE__*/_react.default.createElement(_OneColumnContainer.StyledContainer, {
46
- className: (0, _classnames.default)(itemClass, overStyle, draggingStyle, droppedStyle),
47
- width: width,
48
- height: height
49
- }, /*#__PURE__*/_react.default.createElement("div", {
45
+ return /*#__PURE__*/_react.default.createElement("div", {
50
46
  ref: nodeRef,
51
47
  style: {
52
- width: fit - content,
53
- height: fit - content
48
+ width: "100%",
49
+ height: "100%"
54
50
  }
55
- }, children), /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
51
+ }, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.StyledContainer, {
52
+ className: (0, _classnames.default)(itemClass, overStyle, draggingStyle, droppedStyle),
53
+ width: width,
54
+ height: height
55
+ }, children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
56
56
  clicked: clicked,
57
57
  width: width,
58
58
  height: height
@@ -60,7 +60,7 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
60
60
  onClick: onInfoClick
61
61
  }, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
62
62
  clicked: clicked
63
- })));
63
+ }))));
64
64
  };
65
65
  exports.OneColumnContainer = OneColumnContainer;
66
66
  OneColumnContainer.defaultProps = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -17,18 +17,18 @@ export const OneColumnContainer = ({ children,nodeRef,itemClass,overStyle,draggi
17
17
  }
18
18
 
19
19
  return (
20
+ <div ref={nodeRef} style={{
21
+ width: "100%",
22
+ height: "100%"
23
+ }}>
20
24
  <StyledContainer className={classNames(
21
25
  itemClass,
22
26
  overStyle,
23
27
  draggingStyle,
24
28
  droppedStyle
25
29
  )} width={width} height={height}>
26
- <div ref={nodeRef} style={{
27
- width: fit-content,
28
- height: fit-content
29
- }}>
30
+
30
31
  {children}
31
- </div>
32
32
  <InfoTextContainer clicked={clicked} width={width} height={height}>
33
33
  <InfoTextLabel>{infoText}</InfoTextLabel>
34
34
  </InfoTextContainer>
@@ -36,6 +36,8 @@ export const OneColumnContainer = ({ children,nodeRef,itemClass,overStyle,draggi
36
36
  <InfoIcon clicked={clicked} />
37
37
  </IconContainer>
38
38
  </StyledContainer>
39
+ </div>
40
+
39
41
  );
40
42
  };
41
43