ui: remove header

This commit is contained in:
undefined committed 2021-05-26 00:11:26 +08:00
1 parent ef73b97089
commit ec8606cc49
16 files changed
+58 -281

No files matched your search

@@ -1,8 +1,12 @@
import 'sticky-kit/dist/sticky-kit';
import _ from 'lodash';
import Navigation from 'vj/components/navigation';
import DOMAttachedObject from 'vj/components/DOMAttachedObject';
import { isBelow } from 'vj/utils/mediaQuery';
import responsiveCutoff from 'vj/breakpoints.json';
const navHeight = isBelow(responsiveCutoff.mobile)
? 0
: $('.nav').height();
export default class StyledTable extends DOMAttachedObject {
static DOMAttachKey = 'vjStyledTableInstance';
@@ -33,7 +37,7 @@ export default class StyledTable extends DOMAttachedObject {
const stickyOptions = {
parent: this.$container,
offset_top: Navigation.instance.getHeight(),
offset_top: navHeight,
};
_.defer(() => this.$header.stick_in_parent(stickyOptions));
}