diff --git a/ui/suite/tasks/taskmd.css b/ui/suite/tasks/taskmd.css index 36e2d47..518c666 100644 --- a/ui/suite/tasks/taskmd.css +++ b/ui/suite/tasks/taskmd.css @@ -3,14 +3,14 @@ Uses CSS variables for theme compatibility ============================================================================= */ -/* Task Detail Panel - Fixed scrolling container */ +/* Task Detail Panel - NO scroll here, only children scroll */ .task-detail-panel { display: flex; flex-direction: column; height: 100%; max-height: 100%; min-height: 0; - overflow: hidden; + overflow: hidden !important; } /* Scrollbar styling for detail panel */ @@ -31,7 +31,7 @@ background: var(--border-light, #3a3a3a); } -/* Main Container - no scroll here, children handle their own scroll */ +/* Main Container - NO scroll here, only progress-content scrolls */ .task-detail-rich { display: flex; flex-direction: column; @@ -47,7 +47,7 @@ BlinkMacSystemFont, sans-serif ); - overflow: hidden; + overflow: hidden !important; } /* Header - compact */ @@ -122,16 +122,16 @@ .taskmd-section-status { flex: 0 0 auto; max-height: 100px; - overflow: hidden; + overflow: hidden !important; } -/* Progress log section - takes ALL remaining space, scrollable */ +/* Progress log section - takes ALL remaining space, content scrolls */ .taskmd-section-progress { flex: 1 1 auto; min-height: 150px; display: flex; flex-direction: column; - overflow: hidden; + overflow: hidden !important; } /* Terminal section - fixed at bottom, fixed height */ @@ -142,7 +142,7 @@ max-height: 120px; display: flex; flex-direction: column; - overflow: hidden; + overflow: hidden !important; border-top: 1px solid var(--border, #1a1a1a); } @@ -253,35 +253,37 @@ margin-left: 12px; } -/* PROGRESS LOG Section - maximized with always-visible scrollbar */ +/* PROGRESS LOG Section - THE ONLY SCROLLABLE AREA in detail panel */ .taskmd-progress-content { background: var(--bg, #0a0a0a); flex: 1 1 auto; min-height: 0; - overflow-y: scroll; - overflow-x: hidden; + overflow-y: scroll !important; + overflow-x: hidden !important; scroll-behavior: smooth; scrollbar-width: auto; - scrollbar-color: var(--accent, #c5f82a) var(--surface, #1a1a1a); + scrollbar-color: var(--primary, #c5f82a) var(--surface, #1a1a1a); } .taskmd-progress-content::-webkit-scrollbar { - width: 12px; + width: 14px; } .taskmd-progress-content::-webkit-scrollbar-track { background: var(--surface, #1a1a1a); - border-radius: 6px; + border-radius: 7px; + margin: 4px 0; } .taskmd-progress-content::-webkit-scrollbar-thumb { background: var(--border-light, #3a3a3a); - border-radius: 6px; + border-radius: 7px; border: 3px solid var(--surface, #1a1a1a); + min-height: 40px; } .taskmd-progress-content::-webkit-scrollbar-thumb:hover { - background: var(--accent, #c5f82a); + background: var(--primary, #c5f82a); } .taskmd-tree { diff --git a/ui/suite/tasks/tasks.css b/ui/suite/tasks/tasks.css index 2051083..855fc62 100644 --- a/ui/suite/tasks/tasks.css +++ b/ui/suite/tasks/tasks.css @@ -11,15 +11,15 @@ .tasks-app { display: flex; flex-direction: column; - height: 100vh; - max-height: 100vh; + height: calc(100vh - 64px); + max-height: calc(100vh - 64px); background: var(--bg, #0a0a0a); color: var(--text, #ffffff); font-family: var(--font-family, system-ui, -apple-system, sans-serif); overflow: hidden; } -/* Disable global scroll when tasks app is active */ +/* Disable ALL scrollbars when tasks app is active - scroll only in task list and progress log */ html:has(.tasks-app), body:has(.tasks-app) { overflow: hidden !important; @@ -27,6 +27,17 @@ body:has(.tasks-app) { max-height: 100vh; } +/* Override #main-content scroll when tasks-app is inside */ +#main-content:has(.tasks-app) { + overflow: hidden !important; + height: calc(100vh - 64px) !important; + max-height: calc(100vh - 64px) !important; +} + +.app-main:has(.tasks-app) { + overflow: hidden !important; +} + .tasks-app *, .tasks-app *::before, .tasks-app *::after { @@ -284,9 +295,10 @@ body:has(.tasks-app) { display: grid; grid-template-columns: 320px 1fr; flex: 1; - overflow: hidden; - height: calc(100vh - 140px); - max-height: calc(100vh - 140px); + overflow: hidden !important; + height: 100%; + max-height: 100%; + min-height: 0; } /* ============================================================================= @@ -296,10 +308,11 @@ body:has(.tasks-app) { .tasks-list-panel { display: flex; flex-direction: column; - overflow: hidden; + overflow: hidden !important; border-right: 1px solid var(--border, #2a2a2a); height: 100%; max-height: 100%; + min-height: 0; } .tasks-list-scroll { @@ -845,8 +858,9 @@ body:has(.tasks-app) { display: flex; flex-direction: column; background: var(--surface, #111); - overflow: hidden; + overflow: hidden !important; height: 100%; + max-height: 100%; min-height: 0; position: relative; }