From a16ff24a86aa202b8b3244024d83231a0ebf0212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Eldj=C3=A1rn?= Date: Fri, 22 Jul 2022 11:01:54 -0700 Subject: [PATCH] Fixed alignment of single-element carousel --- src/components/sections/about/team/team.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/sections/about/team/team.tsx b/src/components/sections/about/team/team.tsx index 20b1b5c..a90f8ec 100644 --- a/src/components/sections/about/team/team.tsx +++ b/src/components/sections/about/team/team.tsx @@ -85,17 +85,17 @@ function Team({ members, teamName, teamNumber, teamDept }: Teams) { }, breakpoints: { '(max-width: 900px)': { - slides: { perView: 2.2, spacing: 20, origin: 'center' }, + slides: { perView: 2.2, spacing: 20, origin: 'auto' }, mode: 'snap' }, '(max-width: 600px)': { - slides: { perView: 1.65, spacing: 35, origin: 'center' } + slides: { perView: 1.65, spacing: 35, origin: 'auto' } }, '(min-width: 901px)': { disabled: true } }, - slides: { perView: 1.6, spacing: 30, origin: 'center' } + slides: { perView: 1.6, spacing: 30, origin: 'auto' } }) return (