diff --git a/.routify/config.js b/.routify/config.js index ecf27810..ca44d07e 100644 --- a/.routify/config.js +++ b/.routify/config.js @@ -8,5 +8,5 @@ module.exports = { noHashScroll: false, distDir: 'dist', extensions: ['svelte', 'html', 'svx', 'md'], - started: '2021-11-30T21:25:56.380Z', + started: '2021-12-01T17:51:26.247Z', }; diff --git a/.routify/routes.js b/.routify/routes.js index f8c0cac0..e14bd521 100644 --- a/.routify/routes.js +++ b/.routify/routes.js @@ -1,10 +1,10 @@ /** * @roxi/routify 2.7.3 - * File generated Tue Nov 30 2021 21:25:59 GMT+0000 (Greenwich Mean Time) + * File generated Wed Dec 01 2021 17:51:28 GMT+0000 (Greenwich Mean Time) */ export const __version = '2.7.3'; -export const __timestamp = '2021-11-30T21:25:59.366Z'; +export const __timestamp = '2021-12-01T17:51:28.874Z'; //buildRoutes import { buildClientTree } from '@roxi/routify/runtime/buildRoutes'; diff --git a/package-lock.json b/package-lock.json index 34180a45..b3b090eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10715,6 +10715,11 @@ "strip-indent": "^3.0.0" } }, + "svelte-swipe": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/svelte-swipe/-/svelte-swipe-1.8.2.tgz", + "integrity": "sha512-hZDbxL23fVh0kkLZLNg0pWaITaW8SXpKplXQV/lXhO5TB7W8prBLp6OxzuQjJbgmL2LisOEX2KD1bLBejXly3A==" + }, "symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", diff --git a/package.json b/package.json index b3cabf2e..02298ec3 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,8 @@ "fp-ts": "^2.9.3", "lodash-es": "^4.17.21", "lodash.groupby": "^4.6.0", - "sirv-cli": "^1.0.0" + "sirv-cli": "^1.0.0", + "svelte-swipe": "^1.8.2" }, "setupFilesAfterEnv": [ "@testing-library/jest-dom/extend-expect" diff --git a/public/index.html b/public/index.html index beb5f114..22a87100 100644 --- a/public/index.html +++ b/public/index.html @@ -9,9 +9,9 @@ - + - +
diff --git a/src/components/HexGrid/HexGrid.svelte b/src/components/HexGrid/HexGrid.svelte index d269e62e..056a866a 100644 --- a/src/components/HexGrid/HexGrid.svelte +++ b/src/components/HexGrid/HexGrid.svelte @@ -20,7 +20,7 @@ // switch to flex box if screen is wider than 360 and item numbers are less than 3 $: outerWidth = 0; - $: showGrid = outerWidth >= 360 ? (data.length > 3 ? true : false) : true; + $: showGrid = data.length >= 3 ? true : false;