Skip to content

Commit 44df198

Browse files
authored
Merge pull request #345 from storybookjs/issue-284
Fix scrollbar and scroll snap in homepage heroes
2 parents 2304215 + 4302727 commit 44df198

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/frontpage/components/home/social-validation/social-validation.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ export function SocialValidation({
218218
</div>
219219
</div>
220220
</Container>
221-
<div className="mb-[calc(5rem-1rem)] mt-12 flex snap-x scroll-p-8 gap-8 overflow-scroll px-8 py-0 pb-4 text-white sm:mt-20 md:mt-28">
221+
<div className="mb-[calc(5rem-1rem)] mt-12 flex snap-x scroll-p-8 gap-8 overflow-x-scroll snap-proximity px-8 py-0 pb-4 text-white sm:mt-20 md:mt-28">
222222
{storybooks.map((storybookProject) => (
223223
<a
224-
className="block w-[240px] flex-none no-underline sm:w-[480px]"
224+
className="block w-[240px] flex-none no-underline sm:w-[480px] snap-end"
225225
href={storybookProject.url}
226226
key={storybookProject.name}
227227
rel="noopener nofollow noreferrer"
@@ -253,10 +253,10 @@ export function SocialValidation({
253253
</a>
254254
))}
255255
</div>
256-
<div className="mb-[calc(5rem-1rem)] mt-12 flex snap-x scroll-p-8 gap-8 overflow-scroll px-8 py-0 pb-4 sm:mt-20 md:mt-28">
256+
<div className="mb-[calc(5rem-1rem)] mt-12 flex snap-x scroll-p-8 gap-8 overflow-x-scroll snap-proximity px-8 py-0 pb-4 sm:mt-20 md:mt-28">
257257
{projects.map((project) => (
258258
<a
259-
className="w-[240px] flex-none rounded-md bg-red-500"
259+
className="w-[240px] flex-none rounded-md snap-end"
260260
href={project.projectUrl}
261261
key={project.logoAlt}
262262
rel="noopener"

0 commit comments

Comments
 (0)