From 2b20affd93dcc209cc8f79f856d53c4b055e86cf Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Tue, 10 Sep 2024 15:15:02 -0500 Subject: [PATCH 1/2] [QA-291] Fix explore page perspective card --- packages/web/src/pages/explore-page/collections.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/web/src/pages/explore-page/collections.ts b/packages/web/src/pages/explore-page/collections.ts index b3a06e0c60c..7452fa7963a 100644 --- a/packages/web/src/pages/explore-page/collections.ts +++ b/packages/web/src/pages/explore-page/collections.ts @@ -37,9 +37,6 @@ export type ExploreMoodCollection = ExploreCollection & { moods: string[] } -// How much full width cards move -const WIDE_CARD_SENSITIVTY = 0.04 - export const PREMIUM_TRACKS: ExploreCollection = { variant: ExploreCollectionsVariant.DIRECT_LINK, title: 'Premium Tracks', @@ -47,8 +44,7 @@ export const PREMIUM_TRACKS: ExploreCollection = { gradient: 'linear-gradient(95deg, #13C65A 0%, #16A653 100%)', shadow: 'rgba(196,81,193,0.35)', icon: IconCart, - link: EXPLORE_PREMIUM_TRACKS_PAGE, - cardSensitivity: WIDE_CARD_SENSITIVTY + link: EXPLORE_PREMIUM_TRACKS_PAGE } export const LET_THEM_DJ: ExploreCollection = { @@ -79,8 +75,7 @@ export const TRENDING_PLAYLISTS: ExploreCollection = { shadow: 'rgba(87,170,255,0.35)', icon: IconExploreTopPlaylists, link: TRENDING_PLAYLISTS_PAGE, - incentivized: true, - cardSensitivity: WIDE_CARD_SENSITIVTY + incentivized: true } export const TRENDING_UNDERGROUND: ExploreCollection = { @@ -91,8 +86,7 @@ export const TRENDING_UNDERGROUND: ExploreCollection = { shadow: 'rgba(242, 87, 255, 0.35)', icon: IconCassette, link: TRENDING_UNDERGROUND_PAGE, - incentivized: true, - cardSensitivity: WIDE_CARD_SENSITIVTY + incentivized: true } export const CHILL_PLAYLISTS: ExploreMoodCollection = { From 3eba258d18bc3a7ab99546cd5d20e32a3adb2db9 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Tue, 10 Sep 2024 15:18:27 -0500 Subject: [PATCH 2/2] Reduce sensitivity on premium tile --- packages/web/src/pages/explore-page/collections.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/web/src/pages/explore-page/collections.ts b/packages/web/src/pages/explore-page/collections.ts index 7452fa7963a..aaec9ffb955 100644 --- a/packages/web/src/pages/explore-page/collections.ts +++ b/packages/web/src/pages/explore-page/collections.ts @@ -32,6 +32,9 @@ export type ExploreCollection = { cardSensitivity?: number } +// How much full width cards move +const WIDE_CARD_SENSITIVTY = 0.04 + export type ExploreMoodCollection = ExploreCollection & { emoji: string moods: string[] @@ -44,7 +47,8 @@ export const PREMIUM_TRACKS: ExploreCollection = { gradient: 'linear-gradient(95deg, #13C65A 0%, #16A653 100%)', shadow: 'rgba(196,81,193,0.35)', icon: IconCart, - link: EXPLORE_PREMIUM_TRACKS_PAGE + link: EXPLORE_PREMIUM_TRACKS_PAGE, + cardSensitivity: WIDE_CARD_SENSITIVTY } export const LET_THEM_DJ: ExploreCollection = {