Files
esengine/packages/editor-app/src/styles/UserProfile.css
YHH 107439d70c Feature/runtime cdn and plugin loader (#240)
* feat(ui): 完善 UI 布局系统和编辑器可视化工具

* refactor: 移除 ModuleRegistry,统一使用 PluginManager 插件系统

* fix: 修复 CodeQL 警告并提升测试覆盖率

* refactor: 分离运行时入口点,解决 runtime bundle 包含 React 的问题

* fix(ci): 添加 editor-core 和 editor-runtime 到 CI 依赖构建步骤

* docs: 完善 ServiceContainer 文档,新增 Symbol.for 模式和 @InjectProperty 说明

* fix(ci): 修复 type-check 失败问题

* fix(ci): 修复类型检查失败问题

* fix(ci): 修复类型检查失败问题

* fix(ci): behavior-tree 构建添加 @tauri-apps 外部依赖

* fix(ci): behavior-tree 添加 @tauri-apps/plugin-fs 类型依赖

* fix(ci): platform-web 添加缺失的 behavior-tree 依赖

* fix(lint): 移除正则表达式中不必要的转义字符
2025-11-27 20:42:46 +08:00

175 lines
3.1 KiB
CSS

.user-profile {
position: relative;
display: flex;
align-items: center;
}
.login-button {
display: flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
background: transparent;
border: none;
border-radius: 2px;
color: #888;
font-size: 10px;
font-weight: 500;
cursor: pointer;
transition: all 0.1s;
}
.login-button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
color: #ccc;
}
.login-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.login-button .spinning {
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.user-avatar-button {
display: flex;
align-items: center;
gap: 4px;
padding: 2px 6px 2px 2px;
background: transparent;
border: none;
border-radius: 2px;
color: #888;
font-size: 10px;
font-weight: 500;
cursor: pointer;
transition: all 0.1s;
}
.user-avatar-button:hover {
background: rgba(255, 255, 255, 0.08);
color: #ccc;
}
.user-avatar,
.user-avatar-placeholder {
width: 16px;
height: 16px;
border-radius: 50%;
}
.user-avatar {
object-fit: cover;
border: none;
}
.user-avatar-placeholder {
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
color: #888;
border: none;
}
.user-name {
max-width: 80px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
min-width: 220px;
background: var(--color-bg-secondary, #252526);
border: 1px solid var(--color-border, #333);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
z-index: var(--z-index-dropdown);
overflow: hidden;
}
.user-menu-header {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: var(--color-bg-tertiary, #333);
}
.user-menu-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--color-accent, #0e639c);
}
.user-menu-info {
flex: 1;
min-width: 0;
}
.user-menu-name {
font-size: 14px;
font-weight: 600;
color: var(--color-text-primary, #cccccc);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-menu-login {
font-size: 12px;
color: var(--color-text-secondary, #858585);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-menu-divider {
height: 1px;
background: var(--color-border, #333);
}
.user-menu-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 12px 16px;
background: transparent;
border: none;
color: var(--color-text-primary, #cccccc);
font-size: 13px;
cursor: pointer;
text-align: left;
transition: background 0.2s;
}
.user-menu-item:hover {
background: var(--color-bg-hover, #2d2d30);
}
.user-menu-item:last-child {
color: #ff3b30;
}
.user-menu-item:last-child:hover {
background: rgba(255, 59, 48, 0.1);
}