@visns-studio/visns-components 4.5.1 → 4.5.2

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.
@@ -15,8 +15,9 @@ const CustomFetch = (
15
15
  const headers = {
16
16
  'Content-Type': 'application/json',
17
17
  };
18
-
19
- const MAX_PAYLOAD_SIZE = 4.5 * 1024 * 1024; // 4.5MB in bytes
18
+ const MAX_PAYLOAD_SIZE_MB =
19
+ parseFloat(process.env.REACT_APP_MAX_PAYLOAD_SIZE_MB) || 4.5;
20
+ const MAX_PAYLOAD_SIZE = MAX_PAYLOAD_SIZE_MB * 1024 * 1024; // Convert MB to bytes
20
21
 
21
22
  // Estimate headers size
22
23
  const headersSize = JSON.stringify(headers).length;
@@ -5,7 +5,7 @@
5
5
  }
6
6
 
7
7
  .hwrap .logo {
8
- width: 150px;
8
+ width: var(--logo-width, 100px);
9
9
  padding: 0 1rem 0 0.5rem;
10
10
  margin: 0;
11
11
  line-height: 1.45;
@@ -13,7 +13,7 @@
13
13
 
14
14
  .hwrap .logo img {
15
15
  width: 100%;
16
- max-width: 180px;
16
+ max-width: var(--logo-max-width, 180px);
17
17
  height: auto;
18
18
  display: block;
19
19
  margin: 0 auto;
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "react-dom": "^17.0.1"
59
59
  },
60
60
  "name": "@visns-studio/visns-components",
61
- "version": "4.5.1",
61
+ "version": "4.5.2",
62
62
  "description": "Various packages to assist in the development of our Custom Applications.",
63
63
  "main": "index.js",
64
64
  "scripts": {