@chainplatform/sdk 0.3.0 → 0.3.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.
- package/Layout.js +7 -0
- package/package.json +1 -1
package/Layout.js
CHANGED
@@ -73,6 +73,9 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
73
73
|
// Course
|
74
74
|
courseTotalItem = 5;
|
75
75
|
courseSpace = styles.s75 + styles.fs15;
|
76
|
+
//
|
77
|
+
courseItem = 5;
|
78
|
+
coursePadding = styles.s60;
|
76
79
|
}
|
77
80
|
bannerViewWidth = layoutWidth - sideBarWidth - 2 * viewPadding - splitPadding;
|
78
81
|
viewWidth = bannerViewWidth / bannerOnScreen;
|
@@ -129,6 +132,9 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
129
132
|
|
130
133
|
let webinarViewWidth = layoutWidth - sideBarWidth - 2 * viewPadding - (numberwebinarChart - 1) * webinarPadding;
|
131
134
|
const webinarWidth = webinarViewWidth / numberwebinarChart;
|
135
|
+
|
136
|
+
const layout = layoutWidth - sideBarWidth - (sideBarWidth > 0 ? 3 : 2) * viewPadding;
|
137
|
+
|
132
138
|
let view = {};
|
133
139
|
view.courseItemWidth = courseItemWidth;
|
134
140
|
view.courseItem = courseItem;
|
@@ -141,6 +147,7 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
141
147
|
view.numberWebinar = numberwebinarChart;
|
142
148
|
view.viewPadding = viewPadding;
|
143
149
|
view.sideBarWidth = sideBarWidth;
|
150
|
+
view.layout = layout;
|
144
151
|
view.bannerOnScreen = bannerOnScreen;
|
145
152
|
view.imageMenuSize = imageMenuSize;
|
146
153
|
view.fontMenuSize = fontMenuSize;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@chainplatform/sdk",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.2",
|
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": {
|