feat: 编辑器实时探测并显示已关联虚拟环境
fix: 按系统 ANSI 代码页解码子进程输出,修复中文日志乱码
This commit is contained in:
@@ -767,6 +767,59 @@ code {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.env-detector-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 6px 12px;
|
||||
margin-top: -1px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.env-status-badge {
|
||||
display: inline-flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.env-status-badge.ok {
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.env-status-badge.warn {
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.env-status-badge.pending {
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.env-status-badge code {
|
||||
overflow: hidden;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
background: var(--badge-bg);
|
||||
color: var(--text-main);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.env-detector-hint {
|
||||
flex-shrink: 0;
|
||||
color: var(--text-tertiary);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.field-input[aria-invalid='true'] {
|
||||
border-color: #f08aa0;
|
||||
background: #fffafb;
|
||||
|
||||
Reference in New Issue
Block a user