Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix([issue-1177]): give Brain tabs per-tab scroll contexts instead of one padded wrapper

[._.]/ Adam Eivy0152e0d0560f
diff --git a/client/src/components/brain/tabs/BrainGraph.jsx b/client/src/components/brain/tabs/BrainGraph.jsx
index 3af5f369a7..cbd71ae8a4 100644
--- a/client/src/components/brain/tabs/BrainGraph.jsx
+++ b/client/src/components/brain/tabs/BrainGraph.jsx
@@ -253,7 +253,9 @@ export default function BrainGraph() {
}
return (
- <div className="space-y-3">
+ // Full-bleed tab: own the scroll (the Brain wrapper is overflow-hidden) and
+ // restore the edge padding the shared wrapper no longer provides (#1177).
+ <div className="h-full overflow-y-auto p-3 sm:p-4 space-y-3">
{/* No-embeddings banner */}
{graphData && !graphData.hasEmbeddings && (
<div className="flex items-center justify-between bg-port-warning/10 border border-port-warning/30 rounded-lg px-4 py-2.5">
diff --git a/client/src/components/brain/tabs/DailyLogTab.jsx b/client/src/components/brain/tabs/DailyLogTab.jsx
index 6e6e85ab40..1b60e44cad 100644
--- a/client/src/components/brain/tabs/DailyLogTab.jsx
+++ b/client/src/components/brain/tabs/DailyLogTab.jsx
@@ -344,7 +344,7 @@ export default function DailyLogTab() {
}, [date]);
return (
- <div className="flex h-full -m-4 relative" style={{ height: 'calc(100vh - 180px)', minHeight: '420px' }}>
+ <div className="flex h-full min-h-0 relative">
{/* Left: history + settings. Drawer on mobile, persistent column on md+. */}
{historyOpen && (
<button
@@ -355,7 +355,7 @@ export default function DailyLogTab() {
/>
)}
<div
- className={`${historyOpen ? 'translate-x-0' : '-translate-x-full'} md:translate-x-0 transform transition-transform duration-200 absolute md:static inset-y-0 left-0 z-20 w-[80vw] max-w-xs md:w-64 bg-port-bg md:bg-transparent border-r border-port-border flex flex-col shrink-0`}
+ className={`${historyOpen ? 'translate-x-0' : '-translate-x-full'} md:translate-x-0 transform transition-transform duration-200 absolute md:static inset-y-0 left-0 z-20 w-[80vw] max-w-xs md:w-64 bg-port-bg md:bg-transparent border-r border-port-border flex flex-col min-h-0 shrink-0`}
>
<div className="p-3 border-b border-port-border flex items-center gap-2">
<BookOpen size={14} className="text-port-accent" />
@@ -454,7 +454,7 @@ export default function DailyLogTab() {
</div>
{/* Right: editor */}
- <div className="flex-1 flex flex-col min-w-0">
+ <div className="flex-1 flex flex-col min-w-0 min-h-0">
<div className="flex flex-wrap items-center gap-2 px-3 sm:px-4 py-2 sm:py-3 border-b border-port-border">
<button
onClick={() => setHistoryOpen(true)}
diff --git a/client/src/components/brain/tabs/NotesTab.jsx b/client/src/components/brain/tabs/NotesTab.jsx
index b3815ae518..fb3d4b3bac 100644
--- a/client/src/components/brain/tabs/NotesTab.jsx
+++ b/client/src/components/brain/tabs/NotesTab.jsx
@@ -253,9 +253,9 @@ export default function NotesTab({ onRefresh }) {
const displayNotes = searchResults ? searchResults.results : notes;
return (
- <div className="flex h-full -m-4" style={{ height: 'calc(100vh - 180px)' }}>
+ <div className="flex h-full min-h-0">
{/* Left panel: note list */}
- <div className="w-80 border-r border-port-border flex flex-col shrink-0">
+ <div className="w-80 border-r border-port-border flex flex-col min-h-0 shrink-0">
{/* Vault selector and actions */}
<div className="p-3 border-b border-port-border space-y-2">
<div className="flex items-center gap-2">
@@ -434,7 +434,7 @@ export default function NotesTab({ onRefresh }) {
</div>
{/* Right panel: note viewer/editor */}
- <div className="flex-1 flex flex-col min-w-0">
+ <div className="flex-1 flex flex-col min-w-0 min-h-0">
{loadingNote ? (
<div className="flex items-center justify-center h-full">
<BrailleSpinner text="Loading" />
diff --git a/client/src/pages/Brain.jsx b/client/src/pages/Brain.jsx
index 79fb6b1042..8d26c3fc14 100644
--- a/client/src/pages/Brain.jsx
+++ b/client/src/pages/Brain.jsx
@@ -26,10 +26,17 @@ import ImportTab from '../components/brain/tabs/ImportTab';
// graph tab is actually opened.
const BrainGraph = lazy(() => import('../components/brain/tabs/BrainGraph'));
+// Full-bleed tabs fill the available height and own their internal scroll, so
+// the shared content wrapper must NOT add padding or a second scrollbar for
+// them (that produced the double-scroll/clipping in issue #1177). Every other
+// tab is document-style and gets the padded, scrolling wrapper.
+const FULL_BLEED_TABS = new Set(['graph', 'daily-log', 'notes']);
+
export default function Brain() {
const { tab } = useParams();
const navigate = useNavigate();
const activeTab = tab || 'inbox';
+ const fullBleed = FULL_BLEED_TABS.has(activeTab);
// Let errors throw — `useAutoRefetch` preserves the last-good data on
// transient failures. `silent: true` keeps the 30s poll from spamming
@@ -129,8 +136,9 @@ export default function Brain() {
ariaLabel="Brain sections"
/>
- {/* Tab content */}
- <div className="flex-1 overflow-auto p-4">
+ {/* Tab content — full-bleed tabs own their own scroll and fill height;
+ document-style tabs scroll inside a padded wrapper. */}
+ <div className={`flex-1 min-h-0 ${fullBleed ? 'overflow-hidden' : 'overflow-auto p-3 sm:p-4'}`}>
{renderTabContent()}
</div>
</div>