Fix sticky header gap and scrollbar layout shift
- Change overflow-y to scroll to always reserve scrollbar space - Fix sticky header top position to -24px to eliminate gap with window edge - Add proper padding-top compensation when scrolled
This commit is contained in:
1 parent
fe2bc4b726
commit
5b380ba7da
3 files changed
+1764
-4
No files matched your search
@@ -1192,8 +1192,7 @@
|
||||
padding-left: 18px;
|
||||
padding-right: 24px;
|
||||
padding-bottom: 100px;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
/* Custom scrollbar */
|
||||
@@ -1239,9 +1238,9 @@
|
||||
}
|
||||
|
||||
.sticky-header.scrolled {
|
||||
top: 0;
|
||||
top: -24px;
|
||||
background-color: var(--bg-primary);
|
||||
padding-top: 16px;
|
||||
padding-top: 24px;
|
||||
padding-bottom: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user