feat: Add provider logos for session indication in MainContent

This commit is contained in:
simos
2025-08-12 13:25:32 +03:00
parent 003e8f4be3
commit cd6e5befb8

View File

@@ -18,6 +18,8 @@ import CodeEditor from './CodeEditor';
import Shell from './Shell';
import GitPanel from './GitPanel';
import ErrorBoundary from './ErrorBoundary';
import ClaudeLogo from './ClaudeLogo';
import CursorLogo from './CursorLogo';
function MainContent({
selectedProject,
@@ -153,7 +155,17 @@ function MainContent({
</svg>
</button>
)}
<div className="min-w-0">
<div className="min-w-0 flex items-center gap-2">
{activeTab === 'chat' && selectedSession && (
<div className="w-6 h-6 flex-shrink-0 flex items-center justify-center">
{selectedSession.__provider === 'cursor' ? (
<CursorLogo className="w-5 h-5" />
) : (
<ClaudeLogo className="w-5 h-5" />
)}
</div>
)}
<div className="flex-1 min-w-0">
{activeTab === 'chat' && selectedSession ? (
<div>
<h2 className="text-base sm:text-lg font-semibold text-gray-900 dark:text-white truncate">
@@ -184,6 +196,7 @@ function MainContent({
)}
</div>
</div>
</div>
{/* Modern Tab Navigation - Right Side */}
<div className="flex-shrink-0 hidden sm:block">