fix: 恢复画布 overflow-hidden 防止内容溢出覆盖工具栏

工具栏已使用 Portal 渲染,不再需要 overflow-visible

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Your Name 2026-02-01 15:38:33 +08:00
parent 2524ec551b
commit 3377e0daea

View File

@ -217,7 +217,7 @@ export function CanvasWorkspace() {
<div
ref={containerRef}
className={cn(
"relative w-full h-full overflow-visible bg-background",
"relative w-full h-full overflow-hidden bg-background",
tool === 'pan' && "cursor-grab",
isPanning && "cursor-grabbing"
)}