Open source CapCut alternative.
TypeScript
fix(site): hold the rail still during the tour
David Le6d0f8adaa4b4
diff --git a/site/src/cut/components/SidePanel.tsx b/site/src/cut/components/SidePanel.tsxindex e58e2c35..b000b671 100644--- a/site/src/cut/components/SidePanel.tsx+++ b/site/src/cut/components/SidePanel.tsx@@ -336,6 +336,7 @@ export function SidePanel({the floating scrollbar keeps all 68px for the tiles, so the widestlabel still fits. */}<ScrollArea+ data-tour="side-rail"className={cn("min-h-0 w-[68px] shrink-0",tab !== null && "border-r border-border"diff --git a/site/src/cut/components/onboarding/tour.css b/site/src/cut/components/onboarding/tour.cssindex 2f4b6425..30cfb099 100644--- a/site/src/cut/components/onboarding/tour.css+++ b/site/src/cut/components/onboarding/tour.css@@ -206,3 +206,14 @@ body.driver-active .tl-clip.driver-active-element::after {body.driver-active .driver-active-element * {pointer-events: revert-layer;}++/* The rail holds still while the tour runs: no scrollbar on hover, and no+ scrolling the tile being taught out from under its popover. The viewport's+ overflow is an inline style, so it takes !important to override. */+body.driver-active [data-tour="side-rail"] [data-slot="scroll-area-scrollbar"] {+ display: none;+}++body.driver-active [data-tour="side-rail"] [data-slot="scroll-area-viewport"] {+ overflow: hidden !important;+}