diff --git a/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx b/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx index 063d330e..ecfed990 100644 --- a/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx +++ b/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx @@ -196,7 +196,7 @@ export function ChatPage({ snapshot, actions }: PageProps) { })); return ( -
+
sum + file.sizeBytes, 0); return ( -
+
-
+
@@ -76,6 +76,7 @@ export function FilesPage({ snapshot, actions }: PageProps) { {visibleFiles.length} {visibleFiles.length === 1 ? "file" : "files"} · {formatBytes(totalBytes)}

+
{pinnedFiles.length > 0 && section.kind === "all" && ( <>
Pinned
@@ -115,6 +116,7 @@ export function FilesPage({ snapshot, actions }: PageProps) { onTogglePin={(file) => void actions.run(() => window.agentCompany.setFilePinned({ orgId, fileId: file.id, pinned: !file.pinned }))} /> )} +
); @@ -137,7 +139,7 @@ function FilesTree({ }) { const recent = files.filter((file) => isRecent(file.createdAt)); return ( -
-
+
{children}
diff --git a/AgentCompany-New/src/renderer/src/styles.css b/AgentCompany-New/src/renderer/src/styles.css index ed7a76ad..35756ef5 100644 --- a/AgentCompany-New/src/renderer/src/styles.css +++ b/AgentCompany-New/src/renderer/src/styles.css @@ -298,6 +298,19 @@ a { color: inherit; } overflow: auto; padding: 28px 32px 40px; } +/* Split-layout routes fill the content area and let their panes scroll + independently instead of scrolling the whole page. */ +.content.flush { + display: flex; + flex-direction: column; + overflow: hidden; + padding: 0; +} +.pane-scroll { + flex: 1; + min-height: 0; + overflow-y: auto; +} .page { max-width: 1100px; } .page-wide { width: 100%; } .page-h1 {