diff --git a/frontend/ops_vue_js/package.json b/frontend/ops_vue_js/package.json index 169a818..36de915 100644 --- a/frontend/ops_vue_js/package.json +++ b/frontend/ops_vue_js/package.json @@ -1,6 +1,6 @@ { "name": "ops_vue_js", - "version": "1.5.8", + "version": "1.5.9", "private": true, "type": "module", "engines": { diff --git a/frontend/ops_vue_js/src/views/calendar/CalendarStream.vue b/frontend/ops_vue_js/src/views/calendar/CalendarStream.vue index cdf22b1..527af5b 100644 --- a/frontend/ops_vue_js/src/views/calendar/CalendarStream.vue +++ b/frontend/ops_vue_js/src/views/calendar/CalendarStream.vue @@ -858,8 +858,17 @@ function applyTodayScroll() { } if (targetEl && targetEl.classList.contains('week-row')) { targetEl.scrollIntoView({ block: 'start' }) + adjustForStickySeparator(container, targetEl) } else { todayCell.scrollIntoView({ block: 'start' }) + adjustForStickySeparator(container, todayWeekEl) + } +} + +function adjustForStickySeparator(container, weekEl) { + const sep = weekEl?.previousElementSibling + if (sep?.classList.contains('month-separator')) { + container.scrollBy({ top: -sep.getBoundingClientRect().height }) } }