fix: add position: relative to scroll-view for correct offsetTop

Without position: relative, .task-item offsetParent is the body element,
causing offsetTop to be measured from document root rather than the
scroll container. This makes scrollToTask calculate wrong scrollTop.
This commit is contained in:
Yuyao Huang 2026-05-09 16:06:06 +08:00
parent 5294446407
commit 01ae9c964a

View File

@ -44,6 +44,7 @@
flex: 1;
height: 600px;
overflow-y: auto;
position: relative;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);