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:
parent
c5a5527a44
commit
19110fef2b
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue