Skip to content

Commit 8d45c16

Browse files
committed
Position the interactive editor on mobile in a hacky way
1 parent 9ee7a96 commit 8d45c16

File tree

1 file changed

+1
-1
lines changed
  • src/components/index-page/how-it-works

1 file changed

+1
-1
lines changed

src/components/index-page/how-it-works/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function HowItWorks() {
5454
{inView && (
5555
<ol
5656
// this is rendered *on top* of the static version to avoid layout shift
57-
className="pointer-events-none absolute inset-0 list-none gap-px [counter-set:list-item_1] *:pointer-events-auto lg:grid lg:grid-cols-3 lg:[&>:first-child]:col-start-2"
57+
className="max-lg:before pointer-events-none absolute inset-0 list-none gap-px [counter-set:list-item_1] *:pointer-events-auto max-lg:before:absolute max-lg:before:inset-x-0 max-lg:before:-top-2 max-lg:before:bottom-[98%] max-lg:before:bg-[rgb(var(--nextra-bg))] max-sm:top-[191px] sm:max-lg:top-[214px] lg:grid lg:grid-cols-3 lg:[&>:first-child]:col-start-2"
5858
>
5959
<InteractiveEditor />
6060
</ol>

0 commit comments

Comments
 (0)