refactor(sidebar): remove version button from Sidebar component

- Eliminated the version display button from the Sidebar to streamline the UI.
- Adjusted layout to maintain consistency with the overall design.
This commit is contained in:
Haze
2026-02-06 05:20:55 +08:00
Unverified
parent e9ad15bf6f
commit fc511826a1

View File

@@ -174,17 +174,7 @@ export function Sidebar() {
<ExternalLink className="h-3 w-3 ml-auto" />
</Button>
)}
{/* Version */}
<button
onClick={handleVersionClick}
className={cn(
'w-full text-xs text-muted-foreground hover:text-foreground transition-colors',
sidebarCollapsed ? 'text-center' : 'px-3'
)}
>
{sidebarCollapsed ? `v${appVersion.split('.')[0]}` : `ClawX v${appVersion}`}
</button>
{/* Collapse Toggle */}
<Button