Skip to content

Commit a1f62ba

Browse files
authored
Don't sticky the table header (hestiacp#3314)
1 parent 58bffb5 commit a1f62ba

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

web/css/src/themes/default.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -929,14 +929,6 @@
929929
& .fas {
930930
font-size: 1rem;
931931
}
932-
933-
@media (--viewport-large) {
934-
&.active {
935-
position: fixed;
936-
top: 84px;
937-
z-index: 1;
938-
}
939-
}
940932
}
941933

942934
.units {

web/css/themes/default.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/vestia.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/js/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,12 @@ document.addEventListener('alpine:init', () => {
117117
// Sticky class helper
118118
window.addEventListener('scroll', () => {
119119
const toolbar = document.querySelector('.toolbar');
120-
const tableHeader = document.querySelector('.table-header');
121120
const toolbarOffset =
122121
toolbar.getBoundingClientRect().top + (window.scrollY - document.documentElement.clientTop);
123122
const headerHeight = document.querySelector('.top-bar').offsetHeight;
124123
const isActive = window.scrollY > toolbarOffset - headerHeight;
125124

126125
toolbar.classList.toggle('active', isActive);
127-
if (tableHeader) {
128-
tableHeader.classList.toggle('active', isActive);
129-
}
130126
});
131127

132128
// Select all helper

0 commit comments

Comments
 (0)