ublo-lib 1.30.5 → 1.30.6

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.
@@ -3,6 +3,7 @@ import Button from "dt-design-system/es/button";
3
3
  import { motion } from "framer-motion";
4
4
  import * as Icons from "dt-design-system/es/icons";
5
5
  import classnames from "classnames";
6
+ import * as Cms from "../../utils/cms";
6
7
  import styles from "./collapsible.module.css";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -38,7 +39,8 @@ export default function Collapsible({
38
39
  React.useEffect(() => {
39
40
  const parentHeight = parentRef.current?.offsetHeight;
40
41
  const childrenHeight = childrenRef.current?.offsetHeight;
41
- if (childrenHeight > parentHeight) {
42
+ const isConnected = Cms.isConnected();
43
+ if (!isConnected && childrenHeight > parentHeight) {
42
44
  setHasOverflow(true);
43
45
  }
44
46
  }, []);
@@ -1,9 +1,9 @@
1
- .collapsible {
1
+ .collapsible.overflow {
2
2
  position: relative;
3
3
  overflow: hidden;
4
4
  }
5
5
 
6
- .overflow.collapsible::after {
6
+ .collapsible.overflow::after {
7
7
  content: "";
8
8
  position: absolute;
9
9
  bottom: 0;
@@ -16,12 +16,12 @@
16
16
  z-index: 1;
17
17
  }
18
18
 
19
- .opened.collapsible {
19
+ .collapsible.opened {
20
20
  padding-bottom: 10px;
21
21
  margin-bottom: 10px;
22
22
  }
23
23
 
24
- .opened.collapsible::after {
24
+ .collapsible.opened::after {
25
25
  content: none;
26
26
  }
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.30.5",
3
+ "version": "1.30.6",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",