From 086e8f524f8cedd1452ae7cf6ba62387d461a8cb Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 13 Aug 2026 17:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BB=8A=E5=A4=A9=E5=90=8E?= =?UTF-8?q?=E5=BE=AE=E8=B0=83=E6=BB=9A=E5=8A=A8=EF=BC=9A=E8=A1=A5=E5=81=BF?= =?UTF-8?q?sticky=E6=9C=88=E4=BB=BD=E5=88=86=E9=9A=94=E6=9D=A1=E9=81=AE?= =?UTF-8?q?=E6=8C=A1=EF=BC=8C=E9=A6=96=E8=A1=8C=E6=97=A5=E6=9C=9F=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E6=98=BE=E7=A4=BA=EF=BC=9B=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E5=8D=87=E8=87=B31.5.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/ops_vue_js/package.json | 2 +- .../ops_vue_js/src/views/calendar/CalendarStream.vue | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 }) } }