diff --git a/AgentCompany-New/src/renderer/src/pages/SocialPage.tsx b/AgentCompany-New/src/renderer/src/pages/SocialPage.tsx
index 4c6fccc2..02c16c97 100644
--- a/AgentCompany-New/src/renderer/src/pages/SocialPage.tsx
+++ b/AgentCompany-New/src/renderer/src/pages/SocialPage.tsx
@@ -76,7 +76,7 @@ export function SocialPage({ snapshot, actions }: PageProps) {
void actions.run(() => window.agentCompany.setScheduledPostState({ orgId, scheduledPostId: post.id, state, employeeId: employee.id }));
return (
-
+
-
- {channels.length === 0 ? (
- No channels.
- ) : channels.map((space) => (
- onSelect(space.id)}
- />
- ))}
-
- {directs.length > 0 && (
-
- {directs.map((space) => (
-
+
+ {channels.length === 0 ? (
+ No channels.
+ ) : channels.map((space) => (
+ onSelect(space.id)}
/>
))}
- )}
+ {directs.length > 0 && (
+
+ {directs.map((space) => (
+ onSelect(space.id)}
+ />
+ ))}
+
+ )}
+
);
}
diff --git a/AgentCompany-New/src/renderer/src/shared/Shell.tsx b/AgentCompany-New/src/renderer/src/shared/Shell.tsx
index f7e8858e..2520af33 100644
--- a/AgentCompany-New/src/renderer/src/shared/Shell.tsx
+++ b/AgentCompany-New/src/renderer/src/shared/Shell.tsx
@@ -22,6 +22,10 @@ interface NavSpec {
icon: IconName;
}
+/** Routes whose pages own a full-height, multi-pane layout with their own
+ * internal scroll regions, so the content area must not scroll as one block. */
+const FLUSH_ROUTES = new Set
(["chat", "settings", "files", "social"]);
+
const primaryNav: NavSpec[] = [
{ id: "home", label: "Home", icon: "home" },
{ id: "team", label: "Team", icon: "team" },
@@ -132,7 +136,7 @@ export function Shell({
)}
+
{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 {