@chainplatform/sdk 0.1.22 → 0.1.24
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 +25 -0
- package/package.json +1 -1
package/Layout.js
CHANGED
@@ -89,7 +89,17 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
|
|
89
89
|
if (packageWidth > styles.s280) {
|
90
90
|
packageWidth = styles.s280;
|
91
91
|
}
|
92
|
+
|
93
|
+
let numberwebinarChart = 1;
|
94
|
+
let webinarPadding = styles.s0;
|
95
|
+
if (layoutWidth - sideBarWidth - 2 * viewPadding >= 500) {
|
96
|
+
numberwebinarChart = 2;
|
97
|
+
webinarPadding = styles.fs15;
|
98
|
+
}
|
99
|
+
let webinarViewWidth = layoutWidth - sideBarWidth - 2 * viewPadding - webinarPadding;
|
100
|
+
const webinarWidth = webinarViewWidth / numberwebinarChart;
|
92
101
|
let view = {};
|
102
|
+
view.webinarWidth = webinarWidth;
|
93
103
|
view.viewPadding = viewPadding;
|
94
104
|
view.sideBarWidth = sideBarWidth;
|
95
105
|
view.bannerOnScreen = bannerOnScreen;
|
@@ -217,4 +227,19 @@ export function getCourseLearingLayout(layoutWidth, isDesktop, styles) {
|
|
217
227
|
view.sidebarWidth = sidebarWidth;
|
218
228
|
view.viewPadding = viewPadding;
|
219
229
|
return view;
|
230
|
+
}
|
231
|
+
|
232
|
+
export function getScreenWebinarSize(layoutWidth, styles) {
|
233
|
+
let numberChart = 1;
|
234
|
+
let padding = styles.s30;
|
235
|
+
if (layoutWidth >= 500) {
|
236
|
+
numberChart = 2;
|
237
|
+
padding = styles.s45;
|
238
|
+
}
|
239
|
+
let tmpViewWidth = layoutWidth - padding;
|
240
|
+
let viewWidth = tmpViewWidth / numberChart;
|
241
|
+
let view = {};
|
242
|
+
view.viewWidth = viewWidth;
|
243
|
+
view.viewPadding = styles.fs15;
|
244
|
+
return view;
|
220
245
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@chainplatform/sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.24",
|
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": {
|