fix(sdk): show Header + Sidebar on project list page too
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Failing after 31s
CI / test-python-backend-compliance (push) Successful in 35s
CI / test-python-document-crawler (push) Successful in 22s
CI / test-python-dsms-gateway (push) Successful in 20s
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Failing after 31s
CI / test-python-backend-compliance (push) Successful in 35s
CI / test-python-document-crawler (push) Successful in 22s
CI / test-python-dsms-gateway (push) Successful in 20s
The ProjectSelector page now renders inside the standard SDK layout with header, sidebar and navigation — consistent with all other pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -189,18 +189,16 @@ function SDKInnerLayout({ children }: { children: React.ReactNode }) {
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50">
|
||||
{/* Sidebar — only show when a project is selected */}
|
||||
{projectId && (
|
||||
<SDKSidebar
|
||||
collapsed={sidebarCollapsed}
|
||||
onCollapsedChange={handleCollapsedChange}
|
||||
/>
|
||||
)}
|
||||
{/* Sidebar — always visible */}
|
||||
<SDKSidebar
|
||||
collapsed={sidebarCollapsed}
|
||||
onCollapsedChange={handleCollapsedChange}
|
||||
/>
|
||||
|
||||
{/* Main Content - dynamic margin based on sidebar state */}
|
||||
<div className={`${projectId ? (sidebarCollapsed ? 'ml-16' : 'ml-64') : ''} flex flex-col min-h-screen transition-all duration-300`}>
|
||||
{/* Header — only show when a project is selected */}
|
||||
{projectId && <SDKHeader sidebarCollapsed={sidebarCollapsed} />}
|
||||
<div className={`${sidebarCollapsed ? 'ml-16' : 'ml-64'} flex flex-col min-h-screen transition-all duration-300`}>
|
||||
{/* Header — always visible */}
|
||||
<SDKHeader sidebarCollapsed={sidebarCollapsed} />
|
||||
|
||||
{/* Page Content */}
|
||||
<main className="flex-1 p-6">{children}</main>
|
||||
|
||||
Reference in New Issue
Block a user