Skip to content

Commit 2690c60

Browse files
authored
Merge pull request #446 from albertdbio/fix/enable-text-selection-scrolly
Use z-index instead of relative to enable text selection
2 parents 1615b5a + 675a0f7 commit 2690c60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/content/blog/fine-grained/scrolly.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Rich(props: ContentProps) {
7474
/>
7575
</div>
7676
<div
77-
className="flex-1 min-w-0 relative flex flex-col gap-[calc(100vh-7rem)]"
77+
className="flex-1 min-w-0 flex flex-col gap-[calc(100vh-7rem)]"
7878
style={{ paddingTop: 32, paddingBottom: stickerHeight }}
7979
>
8080
{blocks.map((step, i) => (
@@ -90,7 +90,7 @@ function StepMessage({ step, index }: { step: Step; index: number }) {
9090
<Selectable
9191
index={index}
9292
selectOn={["scroll"]}
93-
className="data-[selected=true]:opacity-100 opacity-50 transition-opacity duration-300 border border-[var(--ch-23)] rounded bg-[var(--ch-22)] px-4 mx-12 prose-h3:mt-4"
93+
className="z-10 data-[selected=true]:opacity-100 opacity-50 transition-opacity duration-300 border border-[var(--ch-23)] rounded bg-[var(--ch-22)] px-4 mx-12 prose-h3:mt-4"
9494
>
9595
{step.children}
9696
{step.after?.children}

0 commit comments

Comments
 (0)