Skip to content

Commit 6f0cd8c

Browse files
committed
Fix the width for mobiles
1 parent 3594020 commit 6f0cd8c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/components/index-page/graphql-advantages/integration.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function IntegrationFigure() {
1010

1111
return (
1212
<div
13-
className="flex min-h-[300px] w-full flex-col items-center justify-center bg-gradient-to-b from-[hsla(75,57%,97%,0)] to-white px-[14px] py-[30px] dark:to-neu-100/20 xl:px-[46px]"
13+
className="flex w-full max-w-[100vw] flex-col items-center justify-center bg-gradient-to-b from-[hsla(75,57%,97%,0)] to-white px-[14px] py-[30px] dark:to-neu-100/20 xl:min-h-[300px] xl:px-[46px]"
1414
aria-hidden
1515
>
1616
<div className="flex w-full items-center justify-center bg-pri-lighter/50 px-10 py-6 dark:bg-pri-base/15">
@@ -20,14 +20,7 @@ export function IntegrationFigure() {
2020
</div>
2121

2222
<div className="relative mt-5 w-full overflow-hidden [mask-image:linear-gradient(to_right,transparent,white_23%,white_77%,transparent)]">
23-
<div
24-
className="flex animate-scroll gap-3"
25-
style={
26-
{
27-
"--animation-duration": "30s",
28-
} as React.CSSProperties
29-
}
30-
>
23+
<div className="flex animate-scroll gap-3 [--animation-duration:10s] lg:[--animation-duration:30s]">
3124
{[...languages, ...languages].map((language, index) => (
3225
<div
3326
key={index}

0 commit comments

Comments
 (0)