Skip to content

Commit 0eab8f7

Browse files
committed
fix(desktop): scroll in GuideModalContent for improved scrolling experience
Signed-off-by: Innei <[email protected]>
1 parent b9d8416 commit 0eab8f7

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

apps/desktop/layer/renderer/src/modules/new-user-guide/guide-modal-content.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Logo } from "@follow/components/icons/logo.jsx"
22
import { Button } from "@follow/components/ui/button/index.js"
33
import { Kbd } from "@follow/components/ui/kbd/Kbd.js"
4+
import { ScrollArea } from "@follow/components/ui/scroll-area/index.js"
45
import { tracker } from "@follow/tracker"
56
import { cn } from "@follow/utils/utils"
67
import { AnimatePresence, m } from "motion/react"
@@ -188,13 +189,15 @@ export function GuideModalContent({ onClose }: { onClose: () => void }) {
188189
)}
189190
</div>
190191
)}
191-
{status === "initial" ? (
192-
<Intro />
193-
) : status === "active" ? (
194-
guideSteps[step - 1]!.content
195-
) : status === "complete" ? (
196-
<Outtro />
197-
) : null}
192+
<ScrollArea.ScrollArea viewportClassName="px-6">
193+
{status === "initial" ? (
194+
<Intro />
195+
) : status === "active" ? (
196+
guideSteps[step - 1]!.content
197+
) : status === "complete" ? (
198+
<Outtro />
199+
) : null}
200+
</ScrollArea.ScrollArea>
198201
</m.div>
199202
</AnimatePresence>
200203
</div>

0 commit comments

Comments
 (0)