From 3eed873bc72f2e90aaa31d7942ced7317e3afbfb Mon Sep 17 00:00:00 2001 From: vodyanoysh Date: Thu, 16 Apr 2026 21:24:38 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B2=D1=8B=D1=80=D0=B0=D0=B2=D0=BD?= =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20WeekView=20=E2=80=94=20o?= =?UTF-8?q?verflow-y:=20auto=20=D0=B4=D0=BB=D1=8F=20scrollbar-gutter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scrollbar-gutter: stable работает только на scrollable-контейнерах (overflow != hidden/visible). Заменил overflow: hidden на overflow-y: auto в .day-headers и .allday-row, теперь браузер резервирует одинаковый scrollbar gutter во всех трёх рядах — заголовки выровнены с сеткой. Co-Authored-By: Claude Sonnet 4.6 --- src/renderer/src/components/calendar/WeekView.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/calendar/WeekView.vue b/src/renderer/src/components/calendar/WeekView.vue index 02bfd94..24ab68d 100644 --- a/src/renderer/src/components/calendar/WeekView.vue +++ b/src/renderer/src/components/calendar/WeekView.vue @@ -299,9 +299,11 @@ function calendarColor(calendarId: string): string { border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(10, 10, 18, 0.35); backdrop-filter: blur(8px); - /* Reserve same space as the stable scrollbar gutter in .grid-scroll */ + /* Reserve same scrollbar gutter as .grid-scroll. + scrollbar-gutter only works on scrollable elements (overflow != hidden/visible), + so overflow-y: auto is required even though .day-headers never actually scrolls. */ + overflow-y: auto; scrollbar-gutter: stable; - overflow: hidden; } .time-gutter { @@ -378,8 +380,8 @@ function calendarColor(calendarId: string): string { border-bottom: 1px solid rgba(255, 255, 255, 0.06); min-height: 30px; background: rgba(255, 255, 255, 0.01); + overflow-y: auto; scrollbar-gutter: stable; - overflow: hidden; } .allday-gutter {