fix: выравнивание WeekView — overflow-y: auto для scrollbar-gutter
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 <noreply@anthropic.com>
This commit is contained in:
parent
19110fef2b
commit
3eed873bc7
1 changed files with 5 additions and 3 deletions
|
|
@ -299,9 +299,11 @@ function calendarColor(calendarId: string): string {
|
||||||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
background: rgba(10, 10, 18, 0.35);
|
background: rgba(10, 10, 18, 0.35);
|
||||||
backdrop-filter: blur(8px);
|
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;
|
scrollbar-gutter: stable;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-gutter {
|
.time-gutter {
|
||||||
|
|
@ -378,8 +380,8 @@ function calendarColor(calendarId: string): string {
|
||||||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
background: rgba(255, 255, 255, 0.01);
|
background: rgba(255, 255, 255, 0.01);
|
||||||
|
overflow-y: auto;
|
||||||
scrollbar-gutter: stable;
|
scrollbar-gutter: stable;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.allday-gutter {
|
.allday-gutter {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue