diff --git a/src/App.tsx b/src/App.tsx index 4728b4844..6b51b8cbb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -44,6 +44,11 @@ import { Button } from "@/components/ui/button"; type View = "providers" | "settings" | "prompts" | "skills" | "mcp" | "agents"; +// 顶部拖拽区域和 header 的高度常量 +const DRAG_BAR_HEIGHT = 28; // px +const HEADER_HEIGHT = 64; // px +const CONTENT_TOP_OFFSET = DRAG_BAR_HEIGHT + HEADER_HEIGHT; + function App() { const { t } = useTranslation(); const queryClient = useQueryClient(); @@ -345,7 +350,7 @@ function App() { return (