fix: Override parent containers to prevent global scroll - only task list and progress log scroll
This commit is contained in:
parent
ade2050668
commit
31bc86ab1e
2 changed files with 40 additions and 24 deletions
|
|
@ -3,14 +3,14 @@
|
||||||
Uses CSS variables for theme compatibility
|
Uses CSS variables for theme compatibility
|
||||||
============================================================================= */
|
============================================================================= */
|
||||||
|
|
||||||
/* Task Detail Panel - Fixed scrolling container */
|
/* Task Detail Panel - NO scroll here, only children scroll */
|
||||||
.task-detail-panel {
|
.task-detail-panel {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Scrollbar styling for detail panel */
|
/* Scrollbar styling for detail panel */
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
background: var(--border-light, #3a3a3a);
|
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 {
|
.task-detail-rich {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
BlinkMacSystemFont,
|
BlinkMacSystemFont,
|
||||||
sans-serif
|
sans-serif
|
||||||
);
|
);
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header - compact */
|
/* Header - compact */
|
||||||
|
|
@ -122,16 +122,16 @@
|
||||||
.taskmd-section-status {
|
.taskmd-section-status {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
max-height: 100px;
|
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 {
|
.taskmd-section-progress {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-height: 150px;
|
min-height: 150px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Terminal section - fixed at bottom, fixed height */
|
/* Terminal section - fixed at bottom, fixed height */
|
||||||
|
|
@ -142,7 +142,7 @@
|
||||||
max-height: 120px;
|
max-height: 120px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
border-top: 1px solid var(--border, #1a1a1a);
|
border-top: 1px solid var(--border, #1a1a1a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -253,35 +253,37 @@
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PROGRESS LOG Section - maximized with always-visible scrollbar */
|
/* PROGRESS LOG Section - THE ONLY SCROLLABLE AREA in detail panel */
|
||||||
.taskmd-progress-content {
|
.taskmd-progress-content {
|
||||||
background: var(--bg, #0a0a0a);
|
background: var(--bg, #0a0a0a);
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll !important;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden !important;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
scrollbar-width: auto;
|
scrollbar-width: auto;
|
||||||
scrollbar-color: var(--accent, #c5f82a) var(--surface, #1a1a1a);
|
scrollbar-color: var(--primary, #c5f82a) var(--surface, #1a1a1a);
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskmd-progress-content::-webkit-scrollbar {
|
.taskmd-progress-content::-webkit-scrollbar {
|
||||||
width: 12px;
|
width: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskmd-progress-content::-webkit-scrollbar-track {
|
.taskmd-progress-content::-webkit-scrollbar-track {
|
||||||
background: var(--surface, #1a1a1a);
|
background: var(--surface, #1a1a1a);
|
||||||
border-radius: 6px;
|
border-radius: 7px;
|
||||||
|
margin: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskmd-progress-content::-webkit-scrollbar-thumb {
|
.taskmd-progress-content::-webkit-scrollbar-thumb {
|
||||||
background: var(--border-light, #3a3a3a);
|
background: var(--border-light, #3a3a3a);
|
||||||
border-radius: 6px;
|
border-radius: 7px;
|
||||||
border: 3px solid var(--surface, #1a1a1a);
|
border: 3px solid var(--surface, #1a1a1a);
|
||||||
|
min-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskmd-progress-content::-webkit-scrollbar-thumb:hover {
|
.taskmd-progress-content::-webkit-scrollbar-thumb:hover {
|
||||||
background: var(--accent, #c5f82a);
|
background: var(--primary, #c5f82a);
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskmd-tree {
|
.taskmd-tree {
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,15 @@
|
||||||
.tasks-app {
|
.tasks-app {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
height: calc(100vh - 64px);
|
||||||
max-height: 100vh;
|
max-height: calc(100vh - 64px);
|
||||||
background: var(--bg, #0a0a0a);
|
background: var(--bg, #0a0a0a);
|
||||||
color: var(--text, #ffffff);
|
color: var(--text, #ffffff);
|
||||||
font-family: var(--font-family, system-ui, -apple-system, sans-serif);
|
font-family: var(--font-family, system-ui, -apple-system, sans-serif);
|
||||||
overflow: hidden;
|
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),
|
html:has(.tasks-app),
|
||||||
body:has(.tasks-app) {
|
body:has(.tasks-app) {
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
|
|
@ -27,6 +27,17 @@ body:has(.tasks-app) {
|
||||||
max-height: 100vh;
|
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 *,
|
||||||
.tasks-app *::before,
|
.tasks-app *::before,
|
||||||
.tasks-app *::after {
|
.tasks-app *::after {
|
||||||
|
|
@ -284,9 +295,10 @@ body:has(.tasks-app) {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 320px 1fr;
|
grid-template-columns: 320px 1fr;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
height: calc(100vh - 140px);
|
height: 100%;
|
||||||
max-height: calc(100vh - 140px);
|
max-height: 100%;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
|
|
@ -296,10 +308,11 @@ body:has(.tasks-app) {
|
||||||
.tasks-list-panel {
|
.tasks-list-panel {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
border-right: 1px solid var(--border, #2a2a2a);
|
border-right: 1px solid var(--border, #2a2a2a);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tasks-list-scroll {
|
.tasks-list-scroll {
|
||||||
|
|
@ -845,8 +858,9 @@ body:has(.tasks-app) {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: var(--surface, #111);
|
background: var(--surface, #111);
|
||||||
overflow: hidden;
|
overflow: hidden !important;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue