Merge pull request #2768 from pikasTech/fix/tasktree-fold-align

修复 TaskTree 折叠组时间轴错位
This commit is contained in:
Lyon
2026-07-23 09:45:18 +08:00
committed by GitHub
@@ -756,15 +756,12 @@ function syncSelectedTaskFromRoute() {
.tasktree-task-group:has(> .tasktree-child-viewport.scrollable) > .tasktree-track { position: relative; z-index: 3; border-bottom-color: #91a4b3; }
.tasktree-task-group:has(> .tasktree-child-viewport.has-hidden-above) > .tasktree-label,
.tasktree-task-group:has(> .tasktree-child-viewport.has-hidden-above) > .tasktree-track { box-shadow: 0 9px 15px -8px rgb(24 45 61 / 62%); }
.tasktree-child-viewport { width: 100%; max-height: calc(46px * 8); overflow: hidden; background: color-mix(in srgb, var(--surface-secondary) 55%, var(--surface-primary)); overscroll-behavior-y: none; scrollbar-color: #7891a5 transparent; scrollbar-width: thin; }
.tasktree-child-viewport { width: 100%; max-height: calc(46px * 8); overflow: hidden; background: color-mix(in srgb, var(--surface-secondary) 55%, var(--surface-primary)); overscroll-behavior-y: none; scrollbar-width: none; }
.tasktree-child-viewport.scrollable { overflow-y: auto; box-shadow: inset 0 1px 0 rgb(18 53 76 / 12%), inset 0 -1px 0 rgb(18 53 76 / 10%); }
.tasktree-child-viewport.has-hidden-above:not(.has-hidden-below) { box-shadow: inset 0 14px 12px -14px rgb(20 43 58 / 58%); }
.tasktree-child-viewport.has-hidden-below:not(.has-hidden-above) { box-shadow: inset 0 -14px 12px -14px rgb(20 43 58 / 52%); }
.tasktree-child-viewport.has-hidden-above.has-hidden-below { box-shadow: inset 0 14px 12px -14px rgb(20 43 58 / 58%), inset 0 -14px 12px -14px rgb(20 43 58 / 52%); }
.tasktree-child-viewport::-webkit-scrollbar { width: 9px; }
.tasktree-child-viewport::-webkit-scrollbar-track { background: transparent; }
.tasktree-child-viewport::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #7891a5; background-clip: padding-box; }
.tasktree-child-viewport::-webkit-scrollbar-thumb:hover { background: #526f86; background-clip: padding-box; }
.tasktree-child-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
.tasktree-statusbar { min-width: 0; min-height: 28px; padding: 0 10px; display: flex; align-items: center; gap: 0; overflow-x: auto; border-top: 1px solid var(--border-color); background: var(--surface-secondary); color: var(--text-secondary); font-family: var(--console-font-mono); font-size: 10px; white-space: nowrap; scrollbar-width: thin; }
.tasktree-statusbar span { display: inline-flex; align-items: center; gap: 4px; }
.tasktree-statusbar span + span::before { margin: 0 9px; color: var(--border-color); content: "|"; }