mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-23 06:04:46 +08:00
feat: implement basic web app
This commit is contained in:
17
frontend/src/components/workspace/overscroll.tsx
Normal file
17
frontend/src/components/workspace/overscroll.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
|
||||
export function Overscroll({
|
||||
behavior,
|
||||
overflow = "hidden",
|
||||
}: {
|
||||
behavior: "none" | "contain" | "auto";
|
||||
overflow?: "hidden" | "auto" | "scroll";
|
||||
}) {
|
||||
useEffect(() => {
|
||||
document.documentElement.style.overflow = overflow;
|
||||
document.documentElement.style.overscrollBehavior = behavior;
|
||||
}, [behavior, overflow]);
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user