@cloud-app-dev/vidc 3.2.16 → 3.2.17

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.
@@ -58,7 +58,7 @@ var App = function App() {
58
58
  },
59
59
  children: /*#__PURE__*/_jsx(GridList, {
60
60
  itemKey: "url",
61
- itemHeight: 300,
61
+ itemHeight: 400,
62
62
  itemWidth: 250,
63
63
  renderItem: function renderItem(image) {
64
64
  return /*#__PURE__*/_jsxs("div", {
@@ -15,7 +15,7 @@ import data from "./data";
15
15
  import GridList from "./index";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
18
- var ITEM_WIDTH = 300;
18
+ var ITEM_WIDTH = 250;
19
19
 
20
20
  function getGridGap(elementWidth, windowHeight) {
21
21
  if (elementWidth > 720 && windowHeight > 480) {
@@ -26,7 +26,7 @@ function getGridGap(elementWidth, windowHeight) {
26
26
  }
27
27
 
28
28
  function getColumnCount(elementWidth, gridGap) {
29
- return Math.floor((elementWidth + gridGap) / (ITEM_WIDTH + gridGap));
29
+ return Math.floor(elementWidth / (ITEM_WIDTH + gridGap));
30
30
  }
31
31
 
32
32
  function getWindowMargin(windowHeight) {
@@ -33,7 +33,8 @@ var GridList = /*#__PURE__*/React.forwardRef(function GridList(props, ref) {
33
33
  return /*#__PURE__*/_jsx("div", {
34
34
  style: {
35
35
  height: cell.height,
36
- maxWidth: cell.width,
36
+ // maxWidth: cell.width,
37
+ width: "100%",
37
38
  gridColumnStart: "".concat(cell.columnNumber),
38
39
  gridRowStart: getGridRowStart(cell, renderData)
39
40
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "3.2.16",
5
+ "version": "3.2.17",
6
6
  "scripts": {
7
7
  "docs:deploy": "gh-pages -d docs-dist",
8
8
  "build": "npm run entry && father build",