增加GIT代码检测节点

This commit is contained in:
dengqichen 2025-12-05 13:58:51 +08:00
parent 2eaca114a4
commit 0e88904267

View File

@ -61,8 +61,10 @@ export const ServerCard: React.FC<ServerCardProps> = ({ server, onTest, onEdit,
}; };
return ( return (
<Card className="group relative flex h-full flex-col justify-between overflow-visible border transition-all duration-200 hover:border-primary/40 hover:shadow-lg"> <Card className={`group relative flex h-full flex-col justify-between overflow-visible border transition-all duration-200 hover:border-primary/40 hover:shadow-lg ${
<CardContent className="relative flex flex-1 flex-col gap-3 p-3"> expanded ? 'rounded-b-none border-b-0' : ''
}`}>
<CardContent className="flex flex-1 flex-col gap-3 p-3">
{/* 基础信息 */} {/* 基础信息 */}
<div className="flex items-start gap-3"> <div className="flex items-start gap-3">
<div className="flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg bg-muted/50"> <div className="flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg bg-muted/50">
@ -202,10 +204,11 @@ export const ServerCard: React.FC<ServerCardProps> = ({ server, onTest, onEdit,
</Tooltip> </Tooltip>
</div> </div>
</div> </div>
</CardContent>
{/* 展开内容 */} {/* 展开内容 */}
{expanded && ( {expanded && (
<div className="absolute left-0 right-0 top-full z-20 -mt-px space-y-3 rounded-b-xl border border-border border-t bg-card p-3 text-xs shadow-lg"> <div className="absolute left-[-1px] right-[-1px] top-full z-20 space-y-3 rounded-b-xl border-x border-b border-border bg-card p-3 text-xs shadow-lg group-hover:border-primary/40">
<div className="flex flex-wrap items-center gap-2"> <div className="flex flex-wrap items-center gap-2">
{renderValue( {renderValue(
<span className="text-muted-foreground"> <span className="text-muted-foreground">
@ -289,7 +292,6 @@ export const ServerCard: React.FC<ServerCardProps> = ({ server, onTest, onEdit,
) : null} ) : null}
</div> </div>
)} )}
</CardContent>
</Card> </Card>
); );
}; };