From 19110fef2b23595de16c45eeaa5c56d7165caba0 Mon Sep 17 00:00:00 2001 From: vodyanoysh Date: Thu, 16 Apr 2026 21:21:13 +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=20s?= =?UTF-8?q?crollbar-gutter:=20stable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Скроллбар внутри .grid-scroll забирал ширину у колонок дней, из-за чего заголовки смещались вправо. Добавил scrollbar-gutter: stable на .grid-scroll, .day-headers и .allday-row — место под скроллбар резервируется одинаково во всех трёх рядах. Co-Authored-By: Claude Sonnet 4.6 --- src/renderer/src/components/calendar/WeekView.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderer/src/components/calendar/WeekView.vue b/src/renderer/src/components/calendar/WeekView.vue index 510d6d3..02bfd94 100644 --- a/src/renderer/src/components/calendar/WeekView.vue +++ b/src/renderer/src/components/calendar/WeekView.vue @@ -299,6 +299,9 @@ 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 */ + scrollbar-gutter: stable; + overflow: hidden; } .time-gutter { @@ -375,6 +378,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); + scrollbar-gutter: stable; + overflow: hidden; } .allday-gutter { @@ -432,6 +437,7 @@ function calendarColor(calendarId: string): string { position: relative; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; + scrollbar-gutter: stable; } .grid-scroll::-webkit-scrollbar {