@chainplatform/sdk 0.2.7 → 0.2.9

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.
Files changed (2) hide show
  1. package/Layout.js +2 -2
  2. package/package.json +1 -1
package/Layout.js CHANGED
@@ -109,13 +109,13 @@ export function getScreenSize(layoutWidth, isDesktop, side_bar_width, styles) {
109
109
  }
110
110
  if (layoutWidth >= styles.split_desktop && side_bar_width == 0) {
111
111
  numberwebinarChart = 3;
112
- webinarPadding = styles.s30;
112
+ webinarPadding = styles.fs15;
113
113
  }
114
114
 
115
115
  let newsItemViewWidth = layoutWidth - sideBarWidth - 2 * viewPadding - newsPadding;
116
116
  const newsItemWidth = newsItemViewWidth / newsItem;
117
117
 
118
- let webinarViewWidth = layoutWidth - sideBarWidth - 2 * viewPadding - webinarPadding;
118
+ let webinarViewWidth = layoutWidth - sideBarWidth - 2 * viewPadding - (numberwebinarChart - 1) * webinarPadding;
119
119
  const webinarWidth = webinarViewWidth / numberwebinarChart;
120
120
  let view = {};
121
121
  view.newsItemWidth = newsItemWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainplatform/sdk",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
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": {