From a94a61194992c247dbb18a747ab4edc1fa03b863 Mon Sep 17 00:00:00 2001 From: SektorDV <35644259+SektorDV@users.noreply.github.com> Date: Fri, 20 Aug 2021 14:16:19 +0200 Subject: [PATCH] Horizontal scroll fix on tables (#1306) (#1313) * restore horizontal overflows to responsive tables * regenerate package-lock --- package-lock.json | 11 +++++------ package.json | 3 +-- src/components/ResponsiveTable/ResponsiveTable.tsx | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 79480604b..e24dcdca5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4182,9 +4182,8 @@ } }, "@saleor/macaw-ui": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@saleor/macaw-ui/-/macaw-ui-0.2.2.tgz", - "integrity": "sha512-/YWChXpALyqZSedjvBchR0vQSHCMFOVlejEdHYBkBbF0hJz2M/Xva+56AdFXnPjmM1J1q2hv7QZxGoNNy9md5g==", + "version": "github:mirumee/macaw-ui#03d63cd1342d2dc7fe18e9f8a9249ba27a52d9c2", + "from": "github:mirumee/macaw-ui#03d63cd", "requires": { "clsx": "^1.1.1", "lodash": "^4.17.21", @@ -19808,9 +19807,9 @@ "dev": true }, "nan": { - "version": "2.14.2", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz", - "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", + "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", "optional": true }, "nanomatch": { diff --git a/package.json b/package.json index cb09a4771..2ee73c3f6 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.58", "@material-ui/styles": "^4.11.4", - "@saleor/macaw-ui": "^0.2.2", + "@saleor/macaw-ui": "github:mirumee/macaw-ui#03d63cd", "@sentry/react": "^6.0.0", "@types/faker": "^5.1.6", "apollo": "^2.32.5", @@ -48,7 +48,6 @@ "editorjs-undo": "^0.1.4", "faker": "^5.1.0", "fast-array-diff": "^0.2.0", - "fsevents": "^1.2.9", "fuzzaldrin": "^2.1.0", "graphql": "^14.4.2", "graphql-tag": "^2.11.0", diff --git a/src/components/ResponsiveTable/ResponsiveTable.tsx b/src/components/ResponsiveTable/ResponsiveTable.tsx index 52ed1be67..2f870a1d8 100644 --- a/src/components/ResponsiveTable/ResponsiveTable.tsx +++ b/src/components/ResponsiveTable/ResponsiveTable.tsx @@ -13,7 +13,7 @@ const useStyles = makeStyles( "& table": { tableLayout: "auto" }, - overflowX: "hidden", + overflowX: "auto", width: "100%" } }),