fix: выравнивание WeekView — scrollbar-gutter: stable

Скроллбар внутри .grid-scroll забирал ширину у колонок дней,
из-за чего заголовки смещались вправо. Добавил scrollbar-gutter: stable
на .grid-scroll, .day-headers и .allday-row — место под скроллбар
резервируется одинаково во всех трёх рядах.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
vodyanoysh 2026-04-16 21:21:13 +07:00
parent c5a5527a44
commit 19110fef2b

View file

@ -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 {