统一新首页与画布交互元素鼠标手型
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-14 14:28:51 +08:00
parent 2c1f936e11
commit 7555a6d7f6
2 changed files with 29 additions and 1 deletions

View File

@ -259,6 +259,33 @@
@apply min-w-3;
}
@layer base {
a[href],
summary,
button:not(:disabled),
label[for],
[role="button"],
[role="link"],
[role="menuitem"],
[role="option"],
[role="radio"],
[role="switch"],
[role="tab"],
[role="checkbox"],
[data-radix-collection-item],
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
cursor: pointer;
}
button:disabled,
[aria-disabled="true"],
[data-disabled] {
cursor: not-allowed;
}
}
.cm-lineNumbers .cm-activeLineGutter {
@apply rounded-l-sm!;
}

View File

@ -576,7 +576,8 @@ export function CanvasWorkspace() {
enableResizing={isSelected && tool === 'select'}
disableDragging={tool !== 'select'}
className={cn(
"absolute"
"absolute",
tool === "select" && "cursor-pointer"
)}
data-canvas-node-id={node.id}
style={{ overflow: 'visible' }} // 允许工具栏显示在节点外部