Remove GitHub link from sidebar and set CI project card titles to normal case.

This commit is contained in:
vinland100 2026-01-05 09:57:47 +08:00
parent 7a3bb08d48
commit 72478bd047
2 changed files with 1 additions and 26 deletions

View File

@ -18,17 +18,14 @@ import {
Trash2, Trash2,
ChevronLeft, ChevronLeft,
ChevronRight, ChevronRight,
Github,
UserCircle, UserCircle,
Shield, Shield,
MessageSquare, MessageSquare,
Bot, Bot,
ExternalLink,
GitGraph, GitGraph,
} from "lucide-react"; } from "lucide-react";
import AppLogo from "@/components/common/AppLogo"; import AppLogo from "@/components/common/AppLogo";
import routes from "@/app/routes"; import routes from "@/app/routes";
import { version } from "../../../package.json";
// Icon mapping for routes with consistent sizing // Icon mapping for routes with consistent sizing
const routeIcons: Record<string, React.ReactNode> = { const routeIcons: Record<string, React.ReactNode> = {
@ -255,28 +252,6 @@ export default function Sidebar({ collapsed, setCollapsed }: SidebarProps) {
)} )}
</Link> </Link>
{/* GitHub Link with enhanced styling */}
<a
href="https://github.com/lintsinghua/DeepAudit"
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-3 px-3 py-2.5 rounded-lg transition-all duration-300 group border border-transparent hover:bg-card/60 hover:border-border/50"
style={{ color: 'var(--cyber-text-muted)' }}
title={collapsed ? "GitHub" : undefined}
>
<span className="p-1.5 rounded-md transition-all duration-300 group-hover:bg-muted/50">
<Github className="w-5 h-5 flex-shrink-0" />
</span>
{!collapsed && (
<div className="flex-1 flex items-center justify-between">
<div className="flex flex-col">
<span className="font-mono text-sm">GitHub</span>
<span className="text-xs font-mono text-muted-foreground/70">v{version}</span>
</div>
<ExternalLink className="w-3.5 h-3.5 opacity-0 group-hover:opacity-100 transition-opacity text-muted-foreground" />
</div>
)}
</a>
{/* System Status with enhanced styling */} {/* System Status with enhanced styling */}
{!collapsed && ( {!collapsed && (

View File

@ -87,7 +87,7 @@ const CIProjects: React.FC = () => {
<CardHeader> <CardHeader>
<div className="flex justify-between items-start"> <div className="flex justify-between items-start">
<div className="space-y-1"> <div className="space-y-1">
<CardTitle className="text-xl break-all line-clamp-1" title={project.name}> <CardTitle className="text-xl break-all line-clamp-1 normal-case" title={project.name}>
{project.name} {project.name}
</CardTitle> </CardTitle>
<CardDescription className="line-clamp-2 min-h-[2.5em]"> <CardDescription className="line-clamp-2 min-h-[2.5em]">