禁止资源画板拖动时选中文本
在资源画板根节点禁用文本选择,覆盖依赖与类型视图。 保留详情卡与资源编辑表单的文本交互。 补充资源工作台样式回归测试。
This commit is contained in:
@@ -5087,6 +5087,7 @@ iframe.preview-frame {
|
||||
background-color: #fffdfa;
|
||||
background-image: radial-gradient(#eaded8 0.8px, transparent 0.8px);
|
||||
background-size: 18px 18px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.game-resource-canvas--dependency {
|
||||
|
||||
@@ -1844,6 +1844,9 @@ export function registerProjectWorkbenchFoundationTests() {
|
||||
expect(styles).toMatch(
|
||||
/\.game-resource-card-open\s*\{[^}]*cursor:\s*pointer[^}]*touch-action:\s*manipulation/s,
|
||||
);
|
||||
expect(styles).toMatch(
|
||||
/\.game-resource-canvas\s*\{[^}]*user-select:\s*none/s,
|
||||
);
|
||||
expect(styles).not.toMatch(/\.game-resource-card\.is-dragging/);
|
||||
|
||||
fireEvent.click(artReceiptButton);
|
||||
|
||||
Reference in New Issue
Block a user