@sima-land/moleculas 15.2.0 → 15.2.1

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,7 +42,12 @@ const ReviewInfo = ({ rating, author, onGoToReview, content, className, notAffec
42
42
  setClamped(contentEl.scrollHeight > contentEl.clientHeight);
43
43
  }
44
44
  }, [opened]);
45
+ (0, react_1.useEffect)(() => {
46
+ setClamped(false);
47
+ setOpened(false);
48
+ }, [content, author]);
45
49
  (0, react_1.useEffect)(checkClamp, [content, opened]);
50
+ // @todo что делать если при изменении размеров изменилось состояние обрезания?
46
51
  (0, react_1.useEffect)(() => (0, on_1.default)(window, 'resize', checkClamp), [content, checkClamp]);
47
52
  return (react_1.default.createElement("div", { className: cx('root', className, opened && shadows_1.BoxShadow.z2straight) },
48
53
  loading && (react_1.default.createElement(Layout, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sima-land/moleculas",
3
- "version": "15.2.0",
3
+ "version": "15.2.1",
4
4
  "repository": "ssh://git@github.com:sima-land/moleculas.git",
5
5
  "author": "www.sima-land.ru team",
6
6
  "license": "Apache-2.0",