diff --git a/components/Random/components/Carousel/index.tsx b/components/Random/components/Carousel/index.tsx index 4e4c1c0..6629fb8 100644 --- a/components/Random/components/Carousel/index.tsx +++ b/components/Random/components/Carousel/index.tsx @@ -104,7 +104,7 @@ const components: VirtuosoProps['components'] = { {...props} ref={handleRef(ref, setScrollElement)} className={cn('no-scrollbar h-full overflow-hidden rounded-lg', { - 'snap-x snap-mandatory ': !isArrowHovered + 'snap-x snap-mandatory': !isArrowHovered })} /> )} diff --git a/package-lock.json b/package-lock.json index f56aa0e..1f37f07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,8 @@ "postcss": "^8.4.27", "prettier": "^3.0.0", "tailwind-merge": "^1.14.0", - "tailwindcss": "^3.3.3" + "tailwindcss": "^3.3.3", + "tailwindcss-touch": "^1.0.1" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -7249,6 +7250,12 @@ "node": ">=14.0.0" } }, + "node_modules/tailwindcss-touch": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tailwindcss-touch/-/tailwindcss-touch-1.0.1.tgz", + "integrity": "sha512-h8A/S9+Mk2rnnaOB/NGCE7CxDhtGKbsAWf8Y2tCO6Zf381Y8dKcygPl1OXkFDnWXkL+FfHxmrGpwculDWAumbA==", + "dev": true + }, "node_modules/tailwindcss/node_modules/postcss-js": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", @@ -12336,6 +12343,12 @@ } } }, + "tailwindcss-touch": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tailwindcss-touch/-/tailwindcss-touch-1.0.1.tgz", + "integrity": "sha512-h8A/S9+Mk2rnnaOB/NGCE7CxDhtGKbsAWf8Y2tCO6Zf381Y8dKcygPl1OXkFDnWXkL+FfHxmrGpwculDWAumbA==", + "dev": true + }, "tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", diff --git a/package.json b/package.json index dffb7db..c69d7ef 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "postcss": "^8.4.27", "prettier": "^3.0.0", "tailwind-merge": "^1.14.0", - "tailwindcss": "^3.3.3" + "tailwindcss": "^3.3.3", + "tailwindcss-touch": "^1.0.1" } } diff --git a/tailwind.config.js b/tailwind.config.js index dea69e7..b8a0b7b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -86,5 +86,6 @@ module.exports = { }, corePlugins: { aspectRatio: false - } + }, + plugins: [require('tailwindcss-touch')()] };