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