Feature/editor optimization (#251)
* refactor: 编辑器/运行时架构拆分与构建系统升级 * feat(core): 层级系统重构与UI变换矩阵修复 * refactor: 移除 ecs-components 聚合包并修复跨包组件查找问题 * fix(physics): 修复跨包组件类引用问题 * feat: 统一运行时架构与浏览器运行支持 * feat(asset): 实现浏览器运行时资产加载系统 * fix: 修复文档、CodeQL安全问题和CI类型检查错误 * fix: 修复文档、CodeQL安全问题和CI类型检查错误 * fix: 修复文档、CodeQL安全问题、CI类型检查和测试错误 * test: 补齐核心模块测试用例,修复CI构建配置 * fix: 修复测试用例中的类型错误和断言问题 * fix: 修复 turbo build:npm 任务的依赖顺序问题 * fix: 修复 CI 构建错误并优化构建性能
This commit is contained in:
@@ -5,24 +5,30 @@
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
||||
padding: 4px 0;
|
||||
min-width: 180px;
|
||||
min-width: 200px;
|
||||
z-index: var(--z-index-popover);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.context-menu.submenu {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.context-menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 12px;
|
||||
padding-right: 24px;
|
||||
color: #cccccc;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.1s ease;
|
||||
user-select: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.context-menu-item:hover:not(.disabled) {
|
||||
background-color: #383838;
|
||||
background-color: #094771;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@@ -32,6 +38,10 @@
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.context-menu-item.has-submenu {
|
||||
padding-right: 28px;
|
||||
}
|
||||
|
||||
.context-menu-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -51,8 +61,41 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.context-menu-shortcut {
|
||||
color: #888888;
|
||||
font-size: 11px;
|
||||
margin-left: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.context-menu-item:hover:not(.disabled) .context-menu-shortcut {
|
||||
color: #aaaaaa;
|
||||
}
|
||||
|
||||
.context-menu-arrow {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
.context-menu-item:hover:not(.disabled) .context-menu-arrow {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.context-menu-separator {
|
||||
height: 1px;
|
||||
background-color: #3e3e42;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
/* Section header in submenu */
|
||||
.context-menu-section-header {
|
||||
padding: 4px 12px;
|
||||
color: #888888;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user