ublo-lib 1.11.11 → 1.11.13

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.
@@ -5,6 +5,7 @@ import List from "./list";
5
5
  import * as API from "./api";
6
6
  import * as Utils from "./utils";
7
7
  import css from "./book.module.css";
8
+ import prefixes from "./prefixes";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
11
  export default function Book({
@@ -19,6 +20,7 @@ export default function Book({
19
20
  const [language, setLanguage] = React.useState("");
20
21
  const [search, setSearch] = React.useState("");
21
22
  const [loading, setLoading] = React.useState(false);
23
+ const isTrombi = !Object.keys(prefixes).includes(lang) || trombi;
22
24
  const refreshContext = React.useCallback(async () => {
23
25
  try {
24
26
  setLoading(true);
@@ -75,7 +77,7 @@ export default function Book({
75
77
  }), _jsx(List, {
76
78
  search: search,
77
79
  instructors: context.instructors,
78
- trombi: trombi
80
+ trombi: isTrombi
79
81
  })]
80
82
  });
81
83
  }
@@ -33,6 +33,7 @@
33
33
  position: relative;
34
34
  width: auto;
35
35
  max-width: 100%;
36
+ min-width: 90px;
36
37
  height: auto;
37
38
  max-height: 100%;
38
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.11.11",
3
+ "version": "1.11.13",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^2.1.0",
6
6
  "leaflet": "^1.9.1",