From f4bd120eecb972246055b8f194b4e6b2ad808e74 Mon Sep 17 00:00:00 2001 From: Sam M <68707128+sam-m-m@users.noreply.github.com> Date: Fri, 23 Jul 2021 14:01:59 -0700 Subject: [PATCH] v0.11.20 -> v0.11.21 (#413) --- package-lock.json | 2 +- package.json | 2 +- src/components/Table/index.tsx | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index da402cf7..a50e7df0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@dassana-io/web-components", - "version": "0.11.19", + "version": "0.11.21", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 24e90f5d..8c024bc6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dassana-io/web-components", - "version": "0.11.20", + "version": "0.11.21", "publishConfig": { "registry": "https://npm.pkg.github.com/dassana-io" }, diff --git a/src/components/Table/index.tsx b/src/components/Table/index.tsx index 5f484eda..4f6d914e 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/index.tsx @@ -130,7 +130,10 @@ export const Table = ({ const { classes: tableControlClasses = [], render: renderTableControls } = tableControlsConfig - const { isMobile } = useWindowSize() + const { + isMobile, + windowSize: { width } + } = useWindowSize() const tableClasses = useStyles({ onRowClick, @@ -263,7 +266,7 @@ export const Table = ({ x: scrollConfig.x } } - } else if (isMobile) { + } else if (width <= 768) { scrollProps = { scroll: { x: scrollConfig ? scrollConfig.x : columns.length * 150