- 修复右键菜单被状态栏遮挡的问题 - 修复右键菜单边界检测,考虑标题栏和状态栏高度 - 调整右键菜单结构:新建文件夹 → 资源类型 → 工具操作 - 修复 Particle 插件默认未启用的问题(defaultEnabled 的新插件不被旧配置禁用) - 修复 SizeOverLifetime 模块在预览中无效果的问题 - 移除 MaterialEditorModule 中的重复模板注册
104 lines
1.7 KiB
CSS
104 lines
1.7 KiB
CSS
.context-menu {
|
|
position: fixed;
|
|
background: #2d2d30;
|
|
border: 1px solid #3e3e42;
|
|
border-radius: 4px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
padding: 4px 0;
|
|
min-width: 200px;
|
|
max-height: calc(100vh - 80px);
|
|
overflow-y: auto;
|
|
z-index: 10001;
|
|
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: #094771;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.context-menu-item.disabled {
|
|
color: #666666;
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.context-menu-item.has-submenu {
|
|
padding-right: 28px;
|
|
}
|
|
|
|
.context-menu-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.context-menu-icon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.context-menu-label {
|
|
flex: 1;
|
|
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;
|
|
}
|