fix(ui): 统一 LSP 指示器按钮样式与工具栏其他按钮一致
This commit is contained in:
@@ -158,13 +158,13 @@ export function DiagnosticsIndicator({
|
||||
size="sm"
|
||||
onClick={onClickLSP}
|
||||
className={cn(
|
||||
'flex items-center gap-1 px-2 py-1 h-auto min-h-0',
|
||||
'hover:bg-surface-base/50 transition-colors',
|
||||
runningServers > 0 ? 'text-green-400' : 'text-fg-subtle'
|
||||
'flex items-center gap-1 p-1.5 h-auto min-h-0',
|
||||
'hover:bg-surface-muted transition-colors',
|
||||
runningServers > 0 ? 'text-green-400' : 'text-fg-muted hover:text-fg-secondary'
|
||||
)}
|
||||
title={`${runningServers} Language Server${runningServers !== 1 ? 's' : ''} Running`}
|
||||
>
|
||||
<Code2 size={14} />
|
||||
<Code2 size={20} />
|
||||
{runningServers > 0 && <span className="text-xs font-medium">{runningServers}</span>}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user