@chainplatform/sdk 0.1.13 → 0.1.15
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 +8 -5
- package/package.json +1 -1
package/Layout.js
CHANGED
@@ -70,7 +70,7 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
70
70
|
const newsWidth = newsViewWidth / newsTotalItem;
|
71
71
|
let numberChart = 1;
|
72
72
|
let padding = styles.s30;
|
73
|
-
if (layoutWidth >
|
73
|
+
if (layoutWidth > 460 && layoutWidth < styles.base_desktop) {
|
74
74
|
numberChart = 2;
|
75
75
|
padding = styles.s45;
|
76
76
|
}
|
@@ -79,10 +79,13 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
79
79
|
padding = styles.s60;
|
80
80
|
}
|
81
81
|
if (layoutWidth >= styles.split_desktop) {
|
82
|
-
numberChart =
|
83
|
-
padding = styles.
|
82
|
+
numberChart = 5;
|
83
|
+
padding = styles.s90;
|
84
|
+
}
|
85
|
+
let packageWidth = (layoutWidth - padding) / numberChart;
|
86
|
+
if (packageWidth < styles.s232) {
|
87
|
+
packageWidth = styles.s232;
|
84
88
|
}
|
85
|
-
const percentWidth = 100 / numberChart;
|
86
89
|
let view = {};
|
87
90
|
view.viewPadding = viewPadding;
|
88
91
|
view.sideBarWidth = sideBarWidth;
|
@@ -95,7 +98,7 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
95
98
|
view.courseWidth = courseWidth;
|
96
99
|
view.newsWidth = newsWidth;
|
97
100
|
view.splitPadding = splitPadding;
|
98
|
-
view.
|
101
|
+
view.packageWidth = packageWidth;
|
99
102
|
return view;
|
100
103
|
}
|
101
104
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@chainplatform/sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.15",
|
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": {
|