@chainplatform/sdk 0.1.17 → 0.1.19
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.
- package/Layout.js +2 -2
- package/LayoutAdmin.js +16 -0
- package/package.json +1 -1
package/Layout.js
CHANGED
@@ -86,8 +86,8 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
86
86
|
if (packageWidth < styles.s232) {
|
87
87
|
packageWidth = styles.s232;
|
88
88
|
}
|
89
|
-
if (packageWidth > styles.
|
90
|
-
packageWidth = styles.
|
89
|
+
if (packageWidth > styles.s280) {
|
90
|
+
packageWidth = styles.s280;
|
91
91
|
}
|
92
92
|
let view = {};
|
93
93
|
view.viewPadding = viewPadding;
|
package/LayoutAdmin.js
CHANGED
@@ -30,4 +30,20 @@ export function getLayoutAdmin(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
30
30
|
view.chartWidth = chartWidth;
|
31
31
|
view.chartWidthPC = chartWidthPC + "%";
|
32
32
|
return view;
|
33
|
+
}
|
34
|
+
|
35
|
+
export function getScreenSizeAdmin(layoutWidth, styles) {
|
36
|
+
let numberChart = 1;
|
37
|
+
let padding = styles.s30;
|
38
|
+
if (layoutWidth > 767) {
|
39
|
+
numberChart = 2;
|
40
|
+
padding = styles.s45;
|
41
|
+
}
|
42
|
+
const chartWidth = (layoutWidth - padding) / numberChart;
|
43
|
+
const chartWidthPC = 100 / numberChart;
|
44
|
+
let view = {};
|
45
|
+
view.padding = padding;
|
46
|
+
view.width = chartWidth;
|
47
|
+
view.widthPC = chartWidthPC + "%";
|
48
|
+
return view;
|
33
49
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@chainplatform/sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.19",
|
4
4
|
"description": "@chainplatform/sdk is a React Native library implement for react-native and react-native-web. Require crypto-js and react-native-mmkv packages.",
|
5
5
|
"main": "index.js",
|
6
6
|
"devDependencies": {
|